<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
  <meta name="theme-color" content="#222">
  <meta name="generator" content="Hexo 4.2.1">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/safari-pinned-tab.svg" color="#222">
  <link rel="stylesheet" href="/css/main.css">
  <link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">
  <link rel="stylesheet" href="/lib/pace/pace-theme-minimal.min.css">
  <script src="/lib/pace/pace.min.js"></script>
  <script id="hexo-configurations">
    var NexT = window.NexT ||
    {};
    var CONFIG = {
      "hostname": "cuiqingcai.com",
      "root": "/",
      "scheme": "Pisces",
      "version": "7.8.0",
      "exturl": false,
      "sidebar":
      {
        "position": "right",
        "width": 360,
        "display": "post",
        "padding": 18,
        "offset": 12,
        "onmobile": false,
        "widgets": [
          {
            "type": "image",
            "name": "阿布云",
            "enable": false,
            "url": "https://www.abuyun.com/http-proxy/introduce.html",
            "src": "https://qiniu.cuiqingcai.com/88au8.jpg",
            "width": "100%"
      },
          {
            "type": "image",
            "name": "天验",
            "enable": true,
            "url": "https://tutorial.lengyue.video/?coupon=12ef4b1a-a3db-11ea-bb37-0242ac130002_cqx_850",
            "src": "https://qiniu.cuiqingcai.com/bco2a.png",
            "width": "100%"
      },
          {
            "type": "image",
            "name": "华为云",
            "enable": false,
            "url": "https://activity.huaweicloud.com/2020_618_promotion/index.html?bpName=5f9f98a29e2c40b780c1793086f29fe2&bindType=1&salesID=wangyubei",
            "src": "https://qiniu.cuiqingcai.com/y42ik.jpg",
            "width": "100%"
      },
          {
            "type": "image",
            "name": "张小鸡",
            "enable": false,
            "url": "http://www.zxiaoji.com/",
            "src": "https://qiniu.cuiqingcai.com/fm72f.png",
            "width": "100%"
      },
          {
            "type": "image",
            "name": "Luminati",
            "src": "https://qiniu.cuiqingcai.com/ikkq9.jpg",
            "url": "https://luminati-china.io/?affiliate=ref_5fbbaaa9647883f5c6f77095",
            "width": "100%",
            "enable": false
      },
          {
            "type": "image",
            "name": "IPIDEA",
            "url": "http://www.ipidea.net/?utm-source=cqc&utm-keyword=?cqc",
            "src": "https://qiniu.cuiqingcai.com/0ywun.png",
            "width": "100%",
            "enable": true
      },
          {
            "type": "tags",
            "name": "标签云",
            "enable": true
      },
          {
            "type": "categories",
            "name": "分类",
            "enable": true
      },
          {
            "type": "friends",
            "name": "友情链接",
            "enable": true
      },
          {
            "type": "hot",
            "name": "猜你喜欢",
            "enable": true
      }]
      },
      "copycode":
      {
        "enable": true,
        "show_result": true,
        "style": "mac"
      },
      "back2top":
      {
        "enable": true,
        "sidebar": false,
        "scrollpercent": true
      },
      "bookmark":
      {
        "enable": false,
        "color": "#222",
        "save": "auto"
      },
      "fancybox": false,
      "mediumzoom": false,
      "lazyload": false,
      "pangu": true,
      "comments":
      {
        "style": "tabs",
        "active": "gitalk",
        "storage": true,
        "lazyload": false,
        "nav": null,
        "activeClass": "gitalk"
      },
      "algolia":
      {
        "hits":
        {
          "per_page": 10
        },
        "labels":
        {
          "input_placeholder": "Search for Posts",
          "hits_empty": "We didn't find any results for the search: ${query}",
          "hits_stats": "${hits} results found in ${time} ms"
        }
      },
      "localsearch":
      {
        "enable": true,
        "trigger": "auto",
        "top_n_per_article": 10,
        "unescape": false,
        "preload": false
      },
      "motion":
      {
        "enable": false,
        "async": false,
        "transition":
        {
          "post_block": "bounceDownIn",
          "post_header": "slideDownIn",
          "post_body": "slideDownIn",
          "coll_header": "slideLeftIn",
          "sidebar": "slideUpIn"
        }
      },
      "path": "search.xml"
    };

  </script>
  <meta name="description" content="崔庆才的个人站点，记录生活的瞬间，分享学习的心得。">
  <meta property="og:type" content="website">
  <meta property="og:title" content="静觅">
  <meta property="og:url" content="https://cuiqingcai.com/page/31/index.html">
  <meta property="og:site_name" content="静觅">
  <meta property="og:description" content="崔庆才的个人站点，记录生活的瞬间，分享学习的心得。">
  <meta property="og:locale" content="zh_CN">
  <meta property="article:author" content="崔庆才">
  <meta property="article:tag" content="崔庆才">
  <meta property="article:tag" content="静觅">
  <meta property="article:tag" content="PHP">
  <meta property="article:tag" content="Java">
  <meta property="article:tag" content="Python">
  <meta property="article:tag" content="Spider">
  <meta property="article:tag" content="爬虫">
  <meta property="article:tag" content="Web">
  <meta property="article:tag" content="Kubernetes">
  <meta property="article:tag" content="深度学习">
  <meta property="article:tag" content="机器学习">
  <meta property="article:tag" content="数据分析">
  <meta property="article:tag" content="网络">
  <meta property="article:tag" content="IT">
  <meta property="article:tag" content="技术">
  <meta property="article:tag" content="博客">
  <meta name="twitter:card" content="summary">
  <link rel="canonical" href="https://cuiqingcai.com/page/31/">
  <script id="page-configurations">
    // https://hexo.io/docs/variables.html
    CONFIG.page = {
      sidebar: "",
      isHome: true,
      isPost: false,
      lang: 'zh-CN'
    };

  </script>
  <title>静觅丨崔庆才的个人站点</title>
  <meta name="google-site-verification" content="p_bIcnvirkFzG2dYKuNDivKD8-STet5W7D-01woA2fc" />
  <noscript>
    <style>
      .use-motion .brand,
      .use-motion .menu-item,
      .sidebar-inner,
      .use-motion .post-block,
      .use-motion .pagination,
      .use-motion .comments,
      .use-motion .post-header,
      .use-motion .post-body,
      .use-motion .collection-header
      {
        opacity: initial;
      }

      .use-motion .site-title,
      .use-motion .site-subtitle
      {
        opacity: initial;
        top: initial;
      }

      .use-motion .logo-line-before i
      {
        left: initial;
      }

      .use-motion .logo-line-after i
      {
        right: initial;
      }

    </style>
  </noscript>
  <link rel="alternate" href="/atom.xml" title="静觅" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container">
    <div class="headband"></div>
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner">
        <div class="site-brand-container">
          <div class="site-nav-toggle">
            <div class="toggle" aria-label="切换导航栏">
              <span class="toggle-line toggle-line-first"></span>
              <span class="toggle-line toggle-line-middle"></span>
              <span class="toggle-line toggle-line-last"></span>
            </div>
          </div>
          <div class="site-meta">
            <a href="/" class="brand" rel="start">
              <span class="logo-line-before"><i></i></span>
              <h1 class="site-title">静觅 <span class="site-subtitle"> 崔庆才的个人站点 </span>
              </h1>
              <span class="logo-line-after"><i></i></span>
            </a>
          </div>
          <div class="site-nav-right">
            <div class="toggle popup-trigger">
              <i class="fa fa-search fa-fw fa-lg"></i>
            </div>
          </div>
        </div>
        <nav class="site-nav">
          <ul id="menu" class="main-menu menu">
            <li class="menu-item menu-item-home">
              <a href="/" rel="section">首页</a>
            </li>
            <li class="menu-item menu-item-archives">
              <a href="/archives/" rel="section">文章列表</a>
            </li>
            <li class="menu-item menu-item-tags">
              <a href="/tags/" rel="section">文章标签</a>
            </li>
            <li class="menu-item menu-item-categories">
              <a href="/categories/" rel="section">文章分类</a>
            </li>
            <li class="menu-item menu-item-about">
              <a href="/about/" rel="section">关于博主</a>
            </li>
            <li class="menu-item menu-item-message">
              <a href="/message/" rel="section">给我留言</a>
            </li>
            <li class="menu-item menu-item-search">
              <a role="button" class="popup-trigger">搜索 </a>
            </li>
          </ul>
        </nav>
        <div class="search-pop-overlay">
          <div class="popup search-popup">
            <div class="search-header">
              <span class="search-icon">
                <i class="fa fa-search"></i>
              </span>
              <div class="search-input-container">
                <input autocomplete="off" autocapitalize="off" placeholder="搜索..." spellcheck="false" type="search" class="search-input">
              </div>
              <span class="popup-btn-close">
                <i class="fa fa-times-circle"></i>
              </span>
            </div>
            <div id="search-result">
              <div id="no-result">
                <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
              </div>
            </div>
          </div>
        </div>
      </div>
    </header>
    <div class="back-to-top">
      <i class="fa fa-arrow-up"></i>
      <span>0%</span>
    </div>
    <div class="reading-progress-bar"></div>
    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div class="content index posts-expand">
            <div class="carousel">
              <div id="wowslider-container">
                <div class="ws_images">
                  <ul>
                    <li><a target="_blank" href="https://cuiqingcai.com/5052.html"><img title="Python3网络爬虫开发实战教程" src="https://qiniu.cuiqingcai.com/ipy96.jpg" /></a></li>
                    <li><a target="_blank" href="https://t.lagou.com/fRCBRsRCSN6FA"><img title="52讲轻松搞定网络爬虫" src="https://qiniu.cuiqingcai.com/fqq5e.png" /></a></li>
                    <li><a target="_blank" href="https://brightdata.grsm.io/cuiqingcai"><img title="亮网络解锁器" src="https://qiniu.cuiqingcai.com/6qnb7.png" /></a></li>
                    <li><a target="_blank" href="https://cuiqingcai.com/4320.html"><img title="Python3网络爬虫开发视频教程" src="https://qiniu.cuiqingcai.com/bjrny.jpg" /></a></li>
                    <li><a target="_blank" href="https://cuiqingcai.com/5094.html"><img title="爬虫代理哪家强？十大付费代理详细对比评测出炉！" src="https://qiniu.cuiqingcai.com/nifs6.jpg" /></a></li>
                  </ul>
                </div>
                <div class="ws_thumbs">
                  <div>
                    <a target="_blank" href="#"><img src="https://qiniu.cuiqingcai.com/ipy96.jpg" /></a>
                    <a target="_blank" href="#"><img src="https://qiniu.cuiqingcai.com/fqq5e.png" /></a>
                    <a target="_blank" href="#"><img src="https://qiniu.cuiqingcai.com/6qnb7.png" /></a>
                    <a target="_blank" href="#"><img src="https://qiniu.cuiqingcai.com/bjrny.jpg" /></a>
                    <a target="_blank" href="#"><img src="https://qiniu.cuiqingcai.com/nifs6.jpg" /></a>
                  </div>
                </div>
                <div class="ws_shadow"></div>
              </div>
            </div>
            <link rel="stylesheet" href="/lib/wowslide/slide.css">
            <script src="/lib/wowslide/jquery.min.js"></script>
            <script src="/lib/wowslide/slider.js"></script>
            <script>
              jQuery("#wowslider-container").wowSlider(
              {
                effect: "cube",
                prev: "",
                next: "",
                duration: 20 * 100,
                delay: 20 * 100,
                width: 716,
                height: 297,
                autoPlay: true,
                playPause: true,
                stopOnHover: false,
                loop: false,
                bullets: 0,
                caption: true,
                captionEffect: "slide",
                controls: true,
                onBeforeStep: 0,
                images: 0
              });

            </script>
            <article itemscope itemtype="http://schema.org/Article" class="post-block index" lang="zh-CN">
              <link itemprop="mainEntityOfPage" href="https://cuiqingcai.com/34.html">
              <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
                <meta itemprop="image" content="/images/avatar.png">
                <meta itemprop="name" content="崔庆才">
                <meta itemprop="description" content="崔庆才的个人站点，记录生活的瞬间，分享学习的心得。">
              </span>
              <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
                <meta itemprop="name" content="静觅">
              </span>
              <header class="post-header">
                <h2 class="post-title" itemprop="name headline">
                  <a class="label"> Other <i class="label-arrow"></i>
                  </a>
                  <a href="/34.html" class="post-title-link" itemprop="url">金立E6刷MIUI V5教程</a>
                </h2>
              </header>
              <div class="post-body" itemprop="articleBody">
                <div class="thumb">
                  <img itemprop="contentUrl" class="random">
                </div>
                <div class="excerpt">
                  <p>
                  <p>声明：本文章参考中国派论坛，尊重版权，本文章予以整理。</p>
                  <p>一、【刷机准备】</p>
                  <p>1、备份你手机上的重要资料 2、下载MIUI刷机包 金立ELIFE E6刷机MIUI ROM</p>
                  <p><a href="http://yun.baidu.com/s/1jGp2QQ6" target="_blank" rel="noopener">http://yun.baidu.com/s/1jGp2QQ6</a></p>
                  <p>3、将刷机包放进手机U盘的根目录下，保存备用。</p>
                  <p>二、【刷入第三方Recovery】 必须先刷入第三方Recovery，具体刷入教程请参看：</p>
                  <p>1、首先下载这三个文件：</p>
                  <p>刷机驱动：</p>
                  <p><a href="http://pan.baidu.com/s/1kThZnE3" target="_blank" rel="noopener">http://pan.baidu.com/s/1kThZnE3</a></p>
                  <p>刷机工具： <a href="http://pan.baidu.com/s/1qWIwRco" target="_blank" rel="noopener">http://pan.baidu.com/s/1qWIwRco</a></p>
                  <p>金立中文恢复系统(第三方Recovery)：</p>
                  <p> <a href="http://pan.baidu.com/s/1kTHRdcV" target="_blank" rel="noopener">http://pan.baidu.com/s/1kTHRdcV</a></p>
                  <p>放到同一个文件夹解压备用。</p>
                  <p>2、安装驱动：</p>
                  <p>刷机驱动下载解压，打开后见下图所示</p>
                  <p><img src="http://img.blog.csdn.net/20140225121815078?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>点击刷机驱动-自动安装，再点击InstallDriver安装驱动。</p>
                  <p>成功后如图所示：</p>
                  <p><img src="http://img.blog.csdn.net/20140225121913078?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>3、刷机：</p>
                  <p>请注意刷机前一定要备份好自己的重要资料，联系人，短信备份，否则刷机完毕后会丢失。</p>
                  <p>然后关闭手机，取出SIM卡，以免造成损坏。先不要用USB线连接手机！下载解压刷机工</p>
                  <p>具，然后打开见下图所示，点击</p>
                  <p>Flash_tool.exe</p>
                  <p> 下图是打开后的刷机界面:</p>
                  <p><img src="http://img.blog.csdn.net/20140225122738968?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p> 按照下面的操作步骤操作,图片上标有序号.点击Scatter-loading，然后选择刚才下载的中文恢复系统文件夹，</p>
                  <p>选择图片所示文件，点击打开。</p>
                  <p><img src="http://img.blog.csdn.net/20140225123133500?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>然后点击Download,这时会出现一个提示框，点击是。在此前一定不要连接手机！</p>
                  <p><img src="http://img.blog.csdn.net/20140225123437234?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p><img src="http://img.blog.csdn.net/20140225123512921?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""> 上面的操作执行结束后，手机关机连接电脑即可开始识别。识别后自动开始刷入，识别过程红色进度条，刷入过程黄色进度条。</p>
                  <p><img src="http://img.blog.csdn.net/20140225123916593?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>最后刷机成功后会显示绿色的圆圈。</p>
                  <p>如果你看到如下界面恭喜你刷机成功。</p>
                  <p><img src="http://img.blog.csdn.net/20140225123941906?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>三、【获取超级权限(root)】</p>
                  <p>注意：这是必要的一步，刷入系统需要获取手机最高权限，好多网友会担心相机丢失和卡顿问题，此方法完全不会出现此情况，请放心使用。</p>
                  <p>也就是说这也是完美ROOT的方法。但该步操作会全部清空手机数据，请在此之前一定备份好联系人和其他重要资料！</p>
                  <p>1、成功刷入后，手机关机，然后同时按住音量上键和电源键，等待手机界面出现ELIFE时，同时松开音量上和电源键 手机进入Recovery模式如下</p>
                  <p>如下图：</p>
                  <p><img src="http://img.blog.csdn.net/20140225122232968?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>2、选择第一项重启手机，进入如下界面</p>
                  <p> <img src="http://img.blog.csdn.net/20140225122321156?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""> 3、选择第一项【取消—返回】，进入如下界面，这时如果你的手机未ROOT，它会提示你是否需要ROOT，</p>
                  <p>请选择【Root device】即可，这时手机会自动重启，你的手机已成功ROOT</p>
                  <p> 4、重启开机，为了使你的手机更安全，建议你手动安装超级授权管理,下载地址如下：</p>
                  <p> <a href="http://yun.baidu.com/s/1gd7PQON" target="_blank" rel="noopener">http://yun.baidu.com/s/1gd7PQON</a></p>
                  <p>导入到SD卡中，将其安装.</p>
                  <p>四、【刷入MIUI】</p>
                  <p>1、再次关机，然后同时按住音量上键和电源键，等待手机界面出现ELIFE时，同时松开音量上和电源键 手机进入Recovery模式如下如下图：</p>
                  <p> <img src="http://img.blog.csdn.net/20140225122232968?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>屏幕显示如下： -重启手机 -选择SD卡上的ZIP刷机包 - 从电脑从ADB刷入刷机包 -清空DATA/恢复出厂设置————————》此为双清（双W） -清空CACHE 分区 —————————》此为双清（双W） -备份和恢复 -挂载分区/U盘模式 -高级2、双清 a. 清空DATA/恢复出厂设置（音量上下键移动，电源键确定） 确认后会出现几个”NO” 与”Yes—delete all user data”组成的画面 音量下键 移动光亮条移动至Yes—delete all user data 电源键确认 b.清空CACHE 分区 具体步骤参见a 3、 双清完毕 选择第二项 选择SD卡上的ZIP刷机包 4、 点击进入后 选择第一项 从SD卡选择刷机包 5、 音量+键 找到刚才放在手机U盘的刷机包 选择Rom包 6、选择【是】 刷机开始 等待刷机完毕 请耐心等待 7.、刷机完毕 点击【返回】到如下界面</p>
                  <p><img src="http://img.blog.csdn.net/20140225122232968?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>8、选择【 重启手机】 9、手机自动重启，刷机成功，到此大功告成！</p>
                  <p>五、全新的界面如下： <img src="http://img.blog.csdn.net/20140218154328953?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""><img src="http://img.blog.csdn.net/20140218154337625?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""><img src="http://img.blog.csdn.net/20140218154349750?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""><img src="http://img.blog.csdn.net/20140218154402765?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""><img src="http://img.blog.csdn.net/20140218154412203?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  </p>
                </div>
              </div>
              <div class="post-meta">
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-user"></i>
                  </span>
                  <span class="post-meta-item-text">作者</span>
                  <span><a href="/authors/崔庆才" class="author" itemprop="url" rel="index">崔庆才</a></span>
                </span>
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-calendar"></i>
                  </span>
                  <span class="post-meta-item-text">发表于</span>
                  <time title="创建时间：2014-09-10 13:20:46" itemprop="dateCreated datePublished" datetime="2014-09-10T13:20:46+08:00">2014-09-10</time>
                </span>
                <span id="/34.html" class="post-meta-item leancloud_visitors" data-flag-title="金立E6刷MIUI V5教程" title="阅读次数">
                  <span class="post-meta-item-icon">
                    <i class="fa fa-eye"></i>
                  </span>
                  <span class="post-meta-item-text">阅读次数：</span>
                  <span class="leancloud-visitors-count"></span>
                </span>
                <span class="post-meta-item" title="本文字数">
                  <span class="post-meta-item-icon">
                    <i class="far fa-file-word"></i>
                  </span>
                  <span class="post-meta-item-text">本文字数：</span>
                  <span>1.6k</span>
                </span>
                <span class="post-meta-item" title="阅读时长">
                  <span class="post-meta-item-icon">
                    <i class="far fa-clock"></i>
                  </span>
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                  <span>1 分钟</span>
                </span>
              </div>
            </article>
            <article itemscope itemtype="http://schema.org/Article" class="post-block index" lang="zh-CN">
              <link itemprop="mainEntityOfPage" href="https://cuiqingcai.com/31.html">
              <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
                <meta itemprop="image" content="/images/avatar.png">
                <meta itemprop="name" content="崔庆才">
                <meta itemprop="description" content="崔庆才的个人站点，记录生活的瞬间，分享学习的心得。">
              </span>
              <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
                <meta itemprop="name" content="静觅">
              </span>
              <header class="post-header">
                <h2 class="post-title" itemprop="name headline">
                  <a class="label"> Other <i class="label-arrow"></i>
                  </a>
                  <a href="/31.html" class="post-title-link" itemprop="url">windows下京东云擎上git的用法简介</a>
                </h2>
              </header>
              <div class="post-body" itemprop="articleBody">
                <div class="thumb">
                  <img itemprop="contentUrl" class="random">
                </div>
                <div class="excerpt">
                  <p>
                  <p>1、首先要下载git安装</p>
                  <p>百度git，第三个git for windows就是</p>
                  <p><img src="http://img.blog.csdn.net/20140411115406906?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>然后点击下载，下载最新版本就好了,这个很简单的，安装的时候直接下一步下一步就好了。不再赘述</p>
                  <p><img src="http://img.blog.csdn.net/20140411115620687?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>2.首先在京东云擎上创建一个项目，我创建的PHP项目</p>
                  <p><img src="http://img.blog.csdn.net/20140411120320078?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>其中域名访问是你预览项目的网址，git地址是代码保存的地址，点击复制可以复制下git地址，一会我们会用到</p>
                  <p>3.git使用</p>
                  <p>我们在电脑上创建一个文件夹用来保存项目,比如我创建了hello文件夹，如图所示，现在文件夹还是空的</p>
                  <p><img src="http://img.blog.csdn.net/20140411120643109?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>我们把新建项目上的东西拉下来，在该处右击会出现选项菜单，有一个GIt Init Here，点击一下初始化该项目文件夹，点击后应该会出现.git文件夹，如果没有出现那么则是隐藏了，在控制面板调节显示隐藏文件夹就好了</p>
                  <p><img src="http://img.blog.csdn.net/20140411121136453?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>再右击点击Git Bash,类似命令行的窗口就弹出来了,让我们先把网络上的项目下载到hello文件夹中，点击刚才的京东云擎，把git地址复制下来在命令行中写入</p>
                  <p>git pull <a href="https://code.jd.com/18366119732_p/jae_cqctest.git" target="_blank" rel="noopener">https://code.jd.com/18366119732_p/jae_cqctest.git</a><img src="http://img.blog.csdn.net/20140411121548640?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>他会提示你输入用户名和密码，输入之后会出现下列文件，说明pull成功了</p>
                  <p><img src="http://img.blog.csdn.net/20140411121802640?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>打开文件查看下，这是建立项目默认的配置</p>
                  <p><img src="http://img.blog.csdn.net/20140411121914781?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>我们把index文件修改下,比如修改成</p>
                  <p><img src="http://img.blog.csdn.net/20140411122716812?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>继续打开Git Bash</p>
                  <p>输入git add . 把所有文件添加，然后git commit -m ‘x’ 其中commit是提交确认，-m ‘x’修改描述信息，x可以随便改，如图所示</p>
                  <p><img src="http://img.blog.csdn.net/20140411123037609?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>你可以自定义路径名</p>
                  <p>git remote add origin <a href="https://code.jd.com/18366119732_p/jae_cqctest.git" target="_blank" rel="noopener">https://code.jd.com/18366119732_p/jae_cqctest.git</a> 添加远程仓库</p>
                  <p>也就是把这个网址保存为origin，以后就可以利用origin 来代替这个网址了，方便一些</p>
                  <p>另外</p>
                  <p> git remote -v 是查看所有定义的变量</p>
                  <p> git remote rm origin 为删除远程仓库</p>
                  <p>我们现在把刚才的网址定义为远程仓库</p>
                  <p>现在把本地文件上传</p>
                  <p>输入git push origin master,用户名密码</p>
                  <p>origin是代表远程仓库，master是分支，上传到该分支</p>
                  <p>出现如图所示界面说明成功了</p>
                  <p><img src="http://img.blog.csdn.net/20140411123909484?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>刷新下原来的界面，可以看到你最近上传的东西</p>
                  <p><img src="http://img.blog.csdn.net/20140411124008343?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>点击部署，一键部署</p>
                  <p><img src="http://img.blog.csdn.net/20140411124246734?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>然后再点击访问就可以看到index中页面内容了</p>
                  <p><img src="http://img.blog.csdn.net/20140411124436609?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  </p>
                </div>
              </div>
              <div class="post-meta">
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-user"></i>
                  </span>
                  <span class="post-meta-item-text">作者</span>
                  <span><a href="/authors/崔庆才" class="author" itemprop="url" rel="index">崔庆才</a></span>
                </span>
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-calendar"></i>
                  </span>
                  <span class="post-meta-item-text">发表于</span>
                  <time title="创建时间：2014-09-10 13:14:58" itemprop="dateCreated datePublished" datetime="2014-09-10T13:14:58+08:00">2014-09-10</time>
                </span>
                <span id="/31.html" class="post-meta-item leancloud_visitors" data-flag-title="windows下京东云擎上git的用法简介" title="阅读次数">
                  <span class="post-meta-item-icon">
                    <i class="fa fa-eye"></i>
                  </span>
                  <span class="post-meta-item-text">阅读次数：</span>
                  <span class="leancloud-visitors-count"></span>
                </span>
                <span class="post-meta-item" title="本文字数">
                  <span class="post-meta-item-icon">
                    <i class="far fa-file-word"></i>
                  </span>
                  <span class="post-meta-item-text">本文字数：</span>
                  <span>929</span>
                </span>
                <span class="post-meta-item" title="阅读时长">
                  <span class="post-meta-item-icon">
                    <i class="far fa-clock"></i>
                  </span>
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                  <span>1 分钟</span>
                </span>
              </div>
            </article>
            <article itemscope itemtype="http://schema.org/Article" class="post-block index" lang="zh-CN">
              <link itemprop="mainEntityOfPage" href="https://cuiqingcai.com/30.html">
              <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
                <meta itemprop="image" content="/images/avatar.png">
                <meta itemprop="name" content="崔庆才">
                <meta itemprop="description" content="崔庆才的个人站点，记录生活的瞬间，分享学习的心得。">
              </span>
              <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
                <meta itemprop="name" content="静觅">
              </span>
              <header class="post-header">
                <h2 class="post-title" itemprop="name headline">
                  <a class="label"> Other <i class="label-arrow"></i>
                  </a>
                  <a href="/30.html" class="post-title-link" itemprop="url">MATLAB学习过程常用命令记录(作图)</a>
                </h2>
              </header>
              <div class="post-body" itemprop="articleBody">
                <div class="thumb">
                  <img itemprop="contentUrl" class="random">
                </div>
                <div class="excerpt">
                  <p>
                  <p>1.绘制子图 subplot</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; subplot(<span class="number">1</span>,<span class="number">2</span>,<span class="number">1</span>)</span><br><span class="line">&gt;&gt; subplot(<span class="number">1</span>,<span class="number">3</span>,<span class="number">1</span>)</span><br><span class="line">&gt;&gt; subplot(<span class="number">2</span>,<span class="number">3</span>,<span class="number">1</span>)</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>subplot 函数代表绘制子图，三个参数，第一个代表绘制一共绘制几行小图表，第二个代表绘制几列小图表，第三个代表绘制第几个小图表。此命令也可以用来选定绘制哪个图</p>
                  <p>2.注释标记 text</p>
                  <figure class="highlight lsl">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; text(<span class="number">1</span>,<span class="number">5</span>,'线宽度为<span class="number">4</span>')</span><br><span class="line">&gt;&gt; subplot(<span class="number">1</span>,<span class="number">2</span>,<span class="number">1</span>)</span><br><span class="line">&gt;&gt; text(<span class="number">0.5</span>,<span class="number">0.5</span>,'线宽度为<span class="number">1</span>')</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>text 函数用来绘制注释，三个参数，第一个是x坐标，第二个为y坐标，第三个为文字。</p>
                  <p>3.获得句柄值属性 get</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; <span class="keyword">get</span>(h1)</span><br><span class="line">        DisplayName =</span><br><span class="line">	Annotation = [ (<span class="number">1</span> by <span class="number">1</span>) hg.Annotation <span class="built_in">array</span>]</span><br><span class="line">	Color = [<span class="number">0</span> <span class="number">0</span> <span class="number">1</span>]</span><br><span class="line">	LineStyle = -</span><br><span class="line">	LineWidth = [<span class="number">0.5</span>]</span><br><span class="line">	Marker = none</span><br><span class="line">	MarkerSize = [<span class="number">6</span>]</span><br><span class="line">	MarkerEdgeColor = <span class="built_in">auto</span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>用来获取句柄值属性，一个参数传入句柄值即可</p>
                  <p>4.设置句柄值属性 set</p>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span> set(h2,<span class="string">'LineWidth'</span>,<span class="number">4</span>)</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>用来设置句柄值属性，三个参数，第一个为句柄值，第二个为属性名，第三个为属性值</p>
                  <p>5.矩阵的拼凑 [h1;h2] [h1 h2]</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; h1 = [<span class="number">2</span> <span class="number">3</span> <span class="number">4</span>]</span><br><span class="line">&gt;&gt; h2 = [<span class="number">4</span> <span class="number">5</span> <span class="number">6</span>]</span><br><span class="line">&gt;&gt; h = [h1;h2]</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>h则变为h1和h2叠成的矩阵，即h1在上h2在下</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; h1 = [<span class="number">2</span> <span class="number">3</span> <span class="number">4</span>]</span><br><span class="line">&gt;&gt; h2 = [<span class="number">4</span> <span class="number">5</span> <span class="number">6</span>]</span><br><span class="line">&gt;&gt; h = [h1 h2]</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>h则变为h1和h2左右拼接成的矩阵，即h1在左h2在右</p>
                  <p>6.二维作图 plot</p>
                  <p>(1) plot(Y)</p>
                  <p>①参数为向量：</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; plot([<span class="number">2</span> <span class="number">3</span> <span class="number">4</span>])</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>作图时则</p>
                  <p>作(1,2),(2,3),(3,4)的直线</p>
                  <p>②参数为矩阵：</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; plot([<span class="number">1</span> <span class="number">2</span> <span class="number">3</span>;<span class="number">4</span> <span class="number">5</span> <span class="number">6</span>])</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>则作(1,1)(2,4)和(1,2)(2,5)和(1,4)(2,6)的直线</p>
                  <p>(2)plot(X,Y)</p>
                  <p>①参数为向量和向量</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; plot([<span class="number">1</span> <span class="number">2</span> <span class="number">4</span> ],[<span class="number">2</span> <span class="number">3</span> <span class="number">7</span>])</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>作一条直线过(1,2)(2,3)(4,7)</p>
                  <p>②左向量右矩阵</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; plot([<span class="number">1</span> <span class="number">2</span> <span class="number">3</span>],[<span class="number">2</span> <span class="number">3</span> <span class="number">4</span>;<span class="number">5</span> <span class="number">6</span> <span class="number">7</span>])</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>作图(1,2)(2,3)(3,4)直线和(1,5)(2,6)(3,7)直线 ，共两条</p>
                  <p>③左矩阵右向量</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; plot([<span class="number">1</span> <span class="number">2</span> <span class="number">4</span>;<span class="number">3</span> <span class="number">4</span> <span class="number">1</span>],[<span class="number">2</span> <span class="number">3</span> <span class="number">7</span>])</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>作图(1,2)(2,3)(4,7)和(3,2)(4,3)(1,7)直线，共两条</p>
                  <p>④左矩阵右矩阵</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; plot([<span class="number">1</span> <span class="number">2.9</span> <span class="number">3</span>;<span class="number">4</span> <span class="number">5</span> <span class="number">8</span>],[<span class="number">2</span> <span class="number">3.5</span> <span class="number">4</span>;<span class="number">5</span> <span class="number">6</span> <span class="number">7</span>])</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>作图三条直线，第一个矩阵的第一列和第二个矩阵第一列为一条直线,第一个矩阵的第二列和第二个矩阵的第二列为一条直线…依次类推,共三列,故三条</p>
                  <p>(3)plot(X1,Y1,X2,Y2…)</p>
                  <p>同理,会增加X2和Y2形成的直线</p>
                  <p>(4)plot(X,Y,LineSpec,…)</p>
                  <p>可以加一些属性,其中LineSpec为属性,后面的..则为附加属性</p>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span> plot(x,y,<span class="string">'--ro'</span>,<span class="string">'LineWidth'</span>,<span class="number">4</span>)</span><br><span class="line"><span class="meta">&gt;&gt;</span> plot(x,y,<span class="string">'--ro'</span>,<span class="string">'LineWidth'</span>,<span class="number">6</span>)</span><br><span class="line"><span class="meta">&gt;&gt;</span> plot(x,y,<span class="string">'--ro'</span>,<span class="string">'LineWidth'</span>,<span class="number">6</span>,<span class="string">'MarkerSize'</span>,<span class="number">12</span>)</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>线型: - 实线 — 虚线 : 点线 -. 点画线</p>
                  <p>描点:. 点 o 圈 x 叉号 + 加号 * 星号 &gt; 右三角 ^ 上三角 v 下三角 &lt; 左三角 s 方形 d 菱形 p 五角星 h 六角星</p>
                  <p>颜色: r 红 y 黄 b 蓝 w 白 k 黑</p>
                  <p>另外的属性可以通过get 获取</p>
                  <p>7.为坐标加标签 xlabel ylabel</p>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span> xlabel(<span class="string">'x'</span>) %为x轴加标签</span><br><span class="line"><span class="meta">&gt;&gt;</span> ylabel(<span class="string">'y'</span>) %为y轴加标签</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>分别为x轴和y轴加上标签</p>
                  <p>8.图形保持功能 hold</p>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span> hold on  %开启图形保持功能</span><br><span class="line"><span class="meta">&gt;&gt;</span> hold off %关闭图形保持功能</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>hold on为开启图形保持功能，hold off 为关闭图形保持功能<br>9. 显示或隐藏坐标边框 box</p>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span> box on    %开启坐标边框</span><br><span class="line"><span class="meta">&gt;&gt;</span> box off   %关闭坐标边框</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>box on 显示 box off 关闭 左边边框即为右侧和上方的坐标框，坐标系依然存在</p>
                  <p>10.添加或消除网格 grid</p>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span> grid on      %显示网格</span><br><span class="line"><span class="meta">&gt;&gt;</span> grid off     %关闭网格</span><br><span class="line"><span class="meta">&gt;&gt;</span> grid minor   %显示次网格</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>11.为坐标系添加标题 title</p>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span>title(<span class="string">'string'</span>)     %为坐标系添加标题</span><br><span class="line"><span class="meta">&gt;&gt;</span>title(...,<span class="string">'Property'</span>,<span class="string">'Value'</span>)   %设置标题属性</span><br><span class="line"><span class="meta">&gt;&gt;</span>h = title(...)  %获得句柄值</span><br><span class="line"><span class="meta">&gt;&gt;</span>get(h)   %获得句柄值的属性</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>12.添加文字标注 text</p>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span>text(x,y,<span class="string">'string'</span>)</span><br><span class="line"><span class="meta">&gt;&gt;</span>text(<span class="number">1</span>,<span class="number">2</span>,<span class="string">'OK'</span>)  %添加标记</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>13.设置坐标系属性 axis</p>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span> axis on %显示坐标线</span><br><span class="line"><span class="meta">&gt;&gt;</span> axis off %关闭坐标线</span><br><span class="line"><span class="meta">&gt;&gt;</span> v = axis %显示坐标线范围</span><br><span class="line"><span class="meta">&gt;&gt;</span> axis tight %不显示多余部分</span><br><span class="line"><span class="meta">&gt;&gt;</span> axis fill %坐标系充满显示框</span><br><span class="line"><span class="meta">&gt;&gt;</span> axis equal %坐标纵横比相同</span><br><span class="line"><span class="meta">&gt;&gt;</span> axis square %坐标区域为正方形</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>14. 显示图形标注框 legend</p>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span> legend(<span class="string">'string1'</span>,<span class="string">'string2,...'</span>)  %标注各个画线代表什么</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>15.生成间隔向量 linspace</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; t = linspace(<span class="number">0</span>,<span class="number">2</span>*pi,<span class="number">60</span>) %生成等间隔从<span class="number">0</span>到<span class="number">2</span>pi的<span class="number">60</span>个元素向量</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>16.绘制匿名函数 fplot</p>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span>  f = @(x)<span class="number">200</span>*sin(x)/x; %声明匿名函数表达式</span><br><span class="line"><span class="meta">&gt;&gt;</span>  fplot(f,[-<span class="number">20</span> <span class="number">20</span>]) %绘制函数</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>17.绘制隐函数 ezplot </p>
                  <figure class="highlight lsl">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; ezplot('<span class="number">3</span>*x.^<span class="number">2</span>+<span class="number">2</span>*x*y+<span class="number">4</span>*y.^<span class="number">2</span>=<span class="number">5</span>') %直接输入隐函数表达式</span><br><span class="line">&gt;&gt; ezplot('<span class="number">3</span>*x.^<span class="number">2</span>+<span class="number">2</span>*x*y+<span class="number">4</span>*y.^<span class="number">2</span>=<span class="number">5</span>',[<span class="number">-1</span> <span class="number">1</span>]) %直接输入隐函数表达式,并加入x的范围</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>18.绘制饼状图 pie</p>
                  <figure class="highlight lsl">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; x = [<span class="number">10</span> <span class="number">10</span> <span class="number">30</span> <span class="number">42</span> <span class="number">23</span>]; %输入各个值</span><br><span class="line">&gt;&gt; name = ['<span class="number">1</span>','<span class="number">2</span>','<span class="number">3</span>','<span class="number">4</span>','<span class="number">5</span>']; %输入各个名字</span><br><span class="line">&gt;&gt; explode = [<span class="number">0</span> <span class="number">0</span> <span class="number">0</span> <span class="number">0</span> <span class="number">1</span>] %将第五个分离出来</span><br><span class="line">&gt;&gt; pie(x,explode,name) %绘制饼状图</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>19.绘制柱状图 bar</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; subplot(<span class="number">1</span>,<span class="number">2</span>,<span class="number">1</span>)</span><br><span class="line">&gt;&gt; x = [<span class="number">3</span> <span class="number">4</span> <span class="number">2</span> <span class="number">1</span>];         % 每列一个</span><br><span class="line">&gt;&gt; bar(x)</span><br><span class="line">&gt;&gt; subplot(<span class="number">1</span>,<span class="number">2</span>,<span class="number">2</span>);</span><br><span class="line">&gt;&gt; y = [<span class="number">4</span> <span class="number">5</span> <span class="number">2</span> <span class="number">4</span>;<span class="number">6</span> <span class="number">4</span> <span class="number">1</span> <span class="number">2</span>]; % 每列两个</span><br><span class="line">&gt;&gt; bar(y)</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  </p>
                </div>
              </div>
              <div class="post-meta">
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-user"></i>
                  </span>
                  <span class="post-meta-item-text">作者</span>
                  <span><a href="/authors/崔庆才" class="author" itemprop="url" rel="index">崔庆才</a></span>
                </span>
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-calendar"></i>
                  </span>
                  <span class="post-meta-item-text">发表于</span>
                  <time title="创建时间：2014-09-10 13:13:24" itemprop="dateCreated datePublished" datetime="2014-09-10T13:13:24+08:00">2014-09-10</time>
                </span>
                <span id="/30.html" class="post-meta-item leancloud_visitors" data-flag-title="MATLAB学习过程常用命令记录(作图)" title="阅读次数">
                  <span class="post-meta-item-icon">
                    <i class="fa fa-eye"></i>
                  </span>
                  <span class="post-meta-item-text">阅读次数：</span>
                  <span class="leancloud-visitors-count"></span>
                </span>
                <span class="post-meta-item" title="本文字数">
                  <span class="post-meta-item-icon">
                    <i class="far fa-file-word"></i>
                  </span>
                  <span class="post-meta-item-text">本文字数：</span>
                  <span>2.9k</span>
                </span>
                <span class="post-meta-item" title="阅读时长">
                  <span class="post-meta-item-icon">
                    <i class="far fa-clock"></i>
                  </span>
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                  <span>3 分钟</span>
                </span>
              </div>
            </article>
            <article itemscope itemtype="http://schema.org/Article" class="post-block index" lang="zh-CN">
              <link itemprop="mainEntityOfPage" href="https://cuiqingcai.com/29.html">
              <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
                <meta itemprop="image" content="/images/avatar.png">
                <meta itemprop="name" content="崔庆才">
                <meta itemprop="description" content="崔庆才的个人站点，记录生活的瞬间，分享学习的心得。">
              </span>
              <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
                <meta itemprop="name" content="静觅">
              </span>
              <header class="post-header">
                <h2 class="post-title" itemprop="name headline">
                  <a class="label"> Other <i class="label-arrow"></i>
                  </a>
                  <a href="/29.html" class="post-title-link" itemprop="url">MATLAB学习过程常用命令记录(函数)</a>
                </h2>
              </header>
              <div class="post-body" itemprop="articleBody">
                <div class="thumb">
                  <img itemprop="contentUrl" class="random">
                </div>
                <div class="excerpt">
                  <p>
                  <p>1.匿名函数定义</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; f = @(x)x.^<span class="number">2</span>;</span><br><span class="line">&gt;&gt; fx = f(<span class="number">1</span>:<span class="number">10</span>)</span><br><span class="line"></span><br><span class="line">fx =</span><br><span class="line"></span><br><span class="line">     <span class="number">1</span>     <span class="number">4</span>     <span class="number">9</span>    <span class="number">16</span>    <span class="number">25</span>    <span class="number">36</span>    <span class="number">49</span>    <span class="number">64</span>    <span class="number">81</span>   <span class="number">100</span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; g = @(x,y)x.^<span class="number">2</span>+y.^<span class="number">2</span>;</span><br><span class="line">&gt;&gt; gxy=g(<span class="number">1</span>:<span class="number">10</span>,<span class="number">2</span>:<span class="number">11</span>)</span><br><span class="line">gxy =</span><br><span class="line"></span><br><span class="line">     <span class="number">5</span>    <span class="number">13</span>    <span class="number">25</span>    <span class="number">41</span>    <span class="number">61</span>    <span class="number">85</span>   <span class="number">113</span>   <span class="number">145</span>   <span class="number">181</span>   <span class="number">221</span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <figure class="highlight gcode">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; g = @<span class="comment">(a,b)</span>@<span class="comment">(x)</span>a*x+b;</span><br><span class="line">&gt;&gt; h = g<span class="comment">(2,3)</span>;</span><br><span class="line">&gt;&gt; h</span><br><span class="line"></span><br><span class="line">h =</span><br><span class="line"></span><br><span class="line">    @<span class="comment">(x)</span>a*x+b</span><br><span class="line"></span><br><span class="line">&gt;&gt; k = h<span class="comment">(2)</span></span><br><span class="line"></span><br><span class="line">k =</span><br><span class="line"></span><br><span class="line">     <span class="number">7</span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>2.嵌套函数</p>
                  <figure class="highlight lua">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="function"><span class="keyword">function</span> <span class="title">r</span> =<span class="title">MytestFunction</span><span class="params">(input)</span></span></span><br><span class="line">    a = <span class="number">5</span>;</span><br><span class="line">    c = <span class="built_in">sin</span>(<span class="built_in">input</span>)+<span class="built_in">tan</span>(<span class="built_in">input</span>);</span><br><span class="line">    <span class="function"><span class="keyword">function</span> <span class="title">y</span> = <span class="title">nestedfun</span><span class="params">(b)</span></span>;</span><br><span class="line">        y = a*c+b;</span><br><span class="line">    <span class="keyword">end</span></span><br><span class="line">    r = nestedfun(<span class="number">5</span>);</span><br><span class="line"><span class="keyword">end</span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span> r = MytestFunction(<span class="number">5</span>)</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <figure class="highlight delphi">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="function"><span class="keyword">function</span> <span class="title">r</span> = <span class="title">NestFunction3</span><span class="params">(a)</span></span></span><br><span class="line"><span class="function"><span class="title">b</span> = <span class="title">a</span>+1;</span></span><br><span class="line">    <span class="function"><span class="keyword">function</span> <span class="title">x</span> = <span class="title">nest1</span><span class="params">(m)</span></span></span><br><span class="line"><span class="function">        <span class="title">x</span> = <span class="title">m</span>+1;</span></span><br><span class="line">        <span class="function"><span class="keyword">function</span> <span class="title">nest2</span></span></span><br><span class="line"><span class="function">            <span class="title">n</span> = <span class="title">x</span>+1;</span></span><br><span class="line">        <span class="keyword">end</span></span><br><span class="line">        nest2;</span><br><span class="line">    <span class="keyword">end</span></span><br><span class="line">nest1(b);</span><br><span class="line">r = n;</span><br><span class="line"><span class="keyword">end</span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span> NestFunction3(<span class="number">5</span>)</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>注：变量作用域范围,嵌套函数访问父函数的变量，可以在函数定义里面直接拿来用,父函数访问访问嵌套函数必须在经过调用之后才能调用.</p>
                  <p>第二重嵌套函数可以调用不包含它的第一重嵌套函数，即子函数可以求助于叔伯,但第三重函数不能调用它的第二重嵌套函数，非直系关系。</p>
                  <p>函数关系比喻成父子孙等关系，函数调用比喻成一个人求助一个人，规律如下：</p>
                  <p>父亲可以求助儿子，儿子可以求助父亲，父子可以互相求助。一个人不能求助孙子，重孙等后代，但可以求助直系祖宗如祖父曾祖父等以及和直系祖宗是亲兄弟的先人。一个人可以求助亲兄弟或者亲叔伯，不能求助侄儿。</p>
                  <p>3.求函数零点</p>
                  <figure class="highlight gml">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; f = @(<span class="symbol">x</span>) <span class="built_in">exp</span>(<span class="symbol">x</span>)+<span class="symbol">x</span>.^<span class="number">2</span>+<span class="symbol">x</span>.^(<span class="built_in">sqrt</span>(<span class="symbol">x</span>))<span class="number">-100</span>;</span><br><span class="line">&gt;&gt; x0 = fzero(f,<span class="number">3</span>)</span><br><span class="line"></span><br><span class="line">x0 =</span><br><span class="line"></span><br><span class="line">   <span class="number">4.163549956946139</span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>fzero 函数为求零点的函数，第二个参数是基准点，即求3附近的零点.</p>
                  <figure class="highlight subunit">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; x0 = fzero(f,[2,5])</span><br><span class="line"></span><br><span class="line">x0 =</span><br><span class="line"></span><br><span class="line">   4.163549956946138</span><br><span class="line"></span><br><span class="line">&gt;&gt; x0 = fzero(f,[2,3])</span><br><span class="line"><span class="keyword">Error </span>using fzero (line 274)</span><br><span class="line">The function values at the interval endpoints must differ in sign.</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>另外可以规定区间如上所示</p>
                  <p>4.显式表达y关于x的隐函数</p>
                  <p>例如:(e^y+x^y)^(1/y)-x^2y =0</p>
                  <p>则可以用匿名函数表示为:</p>
                  <figure class="highlight gml">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; <span class="symbol">y</span> = @(<span class="symbol">x</span>)fzero(@(<span class="symbol">y</span>)(<span class="built_in">exp</span>(<span class="symbol">y</span>)+<span class="symbol">x</span>^<span class="symbol">y</span>)^(<span class="number">1</span>/<span class="symbol">y</span>)-<span class="symbol">x</span>^<span class="number">2</span>*<span class="symbol">y</span>,<span class="number">1</span>)</span><br><span class="line"></span><br><span class="line"><span class="symbol">y</span> =</span><br><span class="line"></span><br><span class="line">    @(<span class="symbol">x</span>)fzero(@(<span class="symbol">y</span>)(<span class="built_in">exp</span>(<span class="symbol">y</span>)+<span class="symbol">x</span>^<span class="symbol">y</span>)^(<span class="number">1</span>/<span class="symbol">y</span>)-<span class="symbol">x</span>^<span class="number">2</span>*<span class="symbol">y</span>,<span class="number">1</span>)</span><br><span class="line"></span><br><span class="line">&gt;&gt; y1 = <span class="symbol">y</span>(<span class="number">1</span>)</span><br><span class="line"></span><br><span class="line">y1 =</span><br><span class="line"></span><br><span class="line">    <span class="number">2.7779</span></span><br><span class="line"></span><br><span class="line">&gt;&gt; y2 = <span class="symbol">y</span>(<span class="number">2</span>)</span><br><span class="line"></span><br><span class="line">y2 =</span><br><span class="line"></span><br><span class="line">    <span class="number">1.1055</span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>在外面嵌套一层 arrayfun 即可向量输入</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt;  y = @(xx)<span class="built_in">array</span>fun(@(x)fzero(@(y)(exp(y)+x^y)^(<span class="number">1</span>/y)-x^<span class="number">2</span>*y,<span class="number">1</span>),xx)</span><br><span class="line"></span><br><span class="line">y =</span><br><span class="line"></span><br><span class="line">    @(xx)<span class="built_in">array</span>fun(@(x)fzero(@(y)(exp(y)+x^y)^(<span class="number">1</span>/y)-x^<span class="number">2</span>*y,<span class="number">1</span>),xx)</span><br><span class="line"></span><br><span class="line">&gt;&gt; y(<span class="number">1</span>:<span class="number">10</span>)</span><br><span class="line"></span><br><span class="line">ans =</span><br><span class="line"></span><br><span class="line">  Columns <span class="number">1</span> through <span class="number">7</span></span><br><span class="line"></span><br><span class="line">    <span class="number">2.7779</span>    <span class="number">1.1055</span>    <span class="number">0.7759</span>    <span class="number">0.6284</span>    <span class="number">0.5425</span>    <span class="number">0.4856</span>    <span class="number">0.4446</span></span><br><span class="line"></span><br><span class="line">  Columns <span class="number">8</span> through <span class="number">10</span></span><br><span class="line"></span><br><span class="line">    <span class="number">0.4135</span>    <span class="number">0.3889</span>    <span class="number">0.3689</span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>例如：对于a=[0,0,01,0,02,…,2],求方程f(x)=e^x+x^a+x^(sqrt(x)) = 100的x的值,并画出a和x的图像</p>
                  <p>则可以把它理解为一个隐函数关于x和y变化.</p>
                  <figure class="highlight sas">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">x</span> = @(a) fzero(@(<span class="meta">x</span>)<span class="meta"> exp(</span><span class="meta">x</span>)+<span class="meta">x</span>^a+<span class="meta">x</span>^<span class="meta">(sqrt(</span><span class="meta">x</span>))-100,4)</span><br><span class="line">h = @(xx)arrayf<span class="meta">un(</span>@(a)fzero(@(<span class="meta">x</span><span class="meta">)exp(</span><span class="meta">x</span>)+<span class="meta">x</span>^a+<span class="meta">x</span>^<span class="meta">(sqrt(</span><span class="meta">x</span>))-100,4),xx)</span><br><span class="line">a = 0:0.01:2;</span><br><span class="line">plot(a,h(a))</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>或者</p>
                  <figure class="highlight sas">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; f = @(a)@(<span class="meta">x</span><span class="meta">)exp(</span><span class="meta">x</span>)+<span class="meta">x</span>^a+<span class="meta">x</span>^<span class="meta">(sqrt(</span><span class="meta">x</span>))-100</span><br><span class="line">f =</span><br><span class="line">    @(a)@(<span class="meta">x</span><span class="meta">)exp(</span><span class="meta">x</span>)+<span class="meta">x</span>^a+<span class="meta">x</span>^<span class="meta">(sqrt(</span><span class="meta">x</span>))-100</span><br><span class="line">&gt;&gt; f(a)</span><br><span class="line">ans =</span><br><span class="line">    @(<span class="meta">x</span><span class="meta">)exp(</span><span class="meta">x</span>)+<span class="meta">x</span>^a+<span class="meta">x</span>^<span class="meta">(sqrt(</span><span class="meta">x</span>))-100</span><br><span class="line">&gt;&gt; aa = 0:0.01:2;</span><br><span class="line">&gt;&gt; plot(aa,arrayf<span class="meta">un(</span>@(a)fzero(f(a),4),aa))</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>5.创建符号对象</p>
                  <figure class="highlight lsl">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; a = sym('<span class="number">5</span>');</span><br><span class="line">&gt;&gt; b = sym('b');</span><br><span class="line">&gt;&gt; syms c d e;</span><br><span class="line">&gt;&gt; whos</span><br><span class="line">  Name      Size            Bytes  Class    Attributes</span><br><span class="line"></span><br><span class="line">  a         <span class="number">1</span>x1               <span class="number">112</span>  sym</span><br><span class="line">  b         <span class="number">1</span>x1               <span class="number">112</span>  sym</span><br><span class="line">  c         <span class="number">1</span>x1               <span class="number">112</span>  sym</span><br><span class="line">  d         <span class="number">1</span>x1               <span class="number">112</span>  sym</span><br><span class="line">  e         <span class="number">1</span>x1               <span class="number">112</span>  sym</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>6.常用函数</p>
                  <p>vpa指定有效数字位数显示符号数值对象，如</p>
                  <figure class="highlight ruby">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="meta">&gt;&gt;</span> vpa(pi,<span class="number">30</span>)</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>求极限和导数和级数：</p>
                  <figure class="highlight erlang-repl">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">limit(f,v,a)  <span class="comment">%求极限lim v-&gt;a f(v)</span></span><br><span class="line">limit(f,v,a,<span class="string">'right'</span>) <span class="comment">%求右极限</span></span><br><span class="line">limit(f,v,a,<span class="string">'left'</span>) <span class="comment">%求左极限</span></span><br><span class="line">diff(f,v,n) <span class="comment">%求f(v)的n阶导数</span></span><br><span class="line">taylor(f,n,v,a) <span class="comment">%求f(v)在v=a处展开到n次的泰勒级数</span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>例子：</p>
                  <p>求极限lim n-&gt;+Inf (n^(n+1/2))/e^n*n!</p>
                  <figure class="highlight excel">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; syms <span class="built_in">n</span></span><br><span class="line">&gt;&gt; limit(<span class="built_in">n</span>^(<span class="built_in">n</span>+<span class="number">1</span>/<span class="number">2</span>)/<span class="built_in">exp</span>(<span class="built_in">n</span>)*<span class="built_in">gamma</span>(<span class="built_in">n</span>+<span class="number">1</span>),<span class="built_in">n</span>,inf)</span><br><span class="line"></span><br><span class="line">ans =</span><br><span class="line"></span><br><span class="line">Inf</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="built_in">int</span>f = <span class="built_in">int</span>(f,v)   %求以v为自变量的函数f的不定积分</span><br><span class="line"><span class="built_in">int</span>f = <span class="built_in">int</span>(f,v,a,b) %求以v为自变量的函数f从a到b的定积分</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>例如：</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; syms x</span><br><span class="line">&gt;&gt; s = <span class="built_in">int</span>(<span class="number">1</span>/(x*sqrt(x^<span class="number">2</span>+<span class="number">1</span>)),x)</span><br><span class="line"></span><br><span class="line">s =</span><br><span class="line"></span><br><span class="line">-asinh((<span class="number">1</span>/x^<span class="number">2</span>)^(<span class="number">1</span>/<span class="number">2</span>))</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>求三重积分：</p>
                  <figure class="highlight gml">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">&gt;&gt; syms <span class="symbol">x</span> <span class="symbol">y</span> z</span><br><span class="line">&gt;&gt; result  = int(int(int((<span class="symbol">x</span>+<span class="symbol">y</span>)/z,z,<span class="symbol">x</span>*<span class="symbol">y</span>,<span class="number">2</span>*<span class="symbol">x</span>*<span class="symbol">y</span>),<span class="symbol">y</span>,<span class="symbol">x</span>,<span class="number">2</span>*<span class="symbol">x</span>),<span class="number">1</span>,<span class="number">2</span>)</span><br><span class="line"></span><br><span class="line">result =</span><br><span class="line"></span><br><span class="line">(<span class="number">35</span>*log(<span class="number">2</span>))/<span class="number">6</span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  </p>
                </div>
              </div>
              <div class="post-meta">
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-user"></i>
                  </span>
                  <span class="post-meta-item-text">作者</span>
                  <span><a href="/authors/崔庆才" class="author" itemprop="url" rel="index">崔庆才</a></span>
                </span>
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-calendar"></i>
                  </span>
                  <span class="post-meta-item-text">发表于</span>
                  <time title="创建时间：2014-09-10 13:03:13" itemprop="dateCreated datePublished" datetime="2014-09-10T13:03:13+08:00">2014-09-10</time>
                </span>
                <span id="/29.html" class="post-meta-item leancloud_visitors" data-flag-title="MATLAB学习过程常用命令记录(函数)" title="阅读次数">
                  <span class="post-meta-item-icon">
                    <i class="fa fa-eye"></i>
                  </span>
                  <span class="post-meta-item-text">阅读次数：</span>
                  <span class="leancloud-visitors-count"></span>
                </span>
                <span class="post-meta-item" title="本文字数">
                  <span class="post-meta-item-icon">
                    <i class="far fa-file-word"></i>
                  </span>
                  <span class="post-meta-item-text">本文字数：</span>
                  <span>2.8k</span>
                </span>
                <span class="post-meta-item" title="阅读时长">
                  <span class="post-meta-item-icon">
                    <i class="far fa-clock"></i>
                  </span>
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                  <span>3 分钟</span>
                </span>
              </div>
            </article>
            <article itemscope itemtype="http://schema.org/Article" class="post-block index" lang="zh-CN">
              <link itemprop="mainEntityOfPage" href="https://cuiqingcai.com/28.html">
              <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
                <meta itemprop="image" content="/images/avatar.png">
                <meta itemprop="name" content="崔庆才">
                <meta itemprop="description" content="崔庆才的个人站点，记录生活的瞬间，分享学习的心得。">
              </span>
              <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
                <meta itemprop="name" content="静觅">
              </span>
              <header class="post-header">
                <h2 class="post-title" itemprop="name headline">
                  <a class="label"> Java <i class="label-arrow"></i>
                  </a>
                  <a href="/28.html" class="post-title-link" itemprop="url">递归求解排队进电影院问题,附带JAVA代码</a>
                </h2>
              </header>
              <div class="post-body" itemprop="articleBody">
                <div class="thumb">
                  <img itemprop="contentUrl" class="random">
                </div>
                <div class="excerpt">
                  <p>
                  <p>原题：</p>
                  <figure class="highlight angelscript">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">有<span class="number">2</span>n个人排队进电影院，票价是<span class="number">50</span>美分。在这<span class="number">2</span>n个人当中，其中n个人只有<span class="number">50</span>美分，另外n个人有<span class="number">1</span>美元（纸票子）。愚蠢的电影院开始卖票时<span class="number">1</span>分钱也没有。</span><br><span class="line">问： 有多少种排队方法 使得 每当一个拥有<span class="number">1</span>美元买票时，电影院都有<span class="number">50</span>美分找钱</span><br><span class="line">注： <span class="number">1</span>美元=<span class="number">100</span>美分</span><br><span class="line">拥有<span class="number">1</span>美元的人，拥有的是纸币，没法破成<span class="number">2</span>个<span class="number">50</span>美分</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>解题方法：</p>
                  <p>此题可以用递归方式求解，详细求解过程如下：</p>
                  <p>符合条件的情况必须是拥有1美元的人前方必须要有50美分的人来排队，要不然不可能找零开，即必须满足从头数50美分的人数大于1美元的人数.</p>
                  <p>我们直接求解符合条件的情况.我们先不考虑持有50美分的人的次序,仅考虑持有1美元的人的次序，最后的结果再乘以n! 就可以了.</p>
                  <p>可以转化为50美分的人已经排好,由持有1美元的人进行插空排列.</p>
                  <p>首先1美元的人是不可能插到队头的，所以可以插的空有n个.</p>
                  <p>定义一个函数f(n.m),这表示有n个1美元的人插m个空的方法数,这m个空是从队尾向前数的m个空的位置.</p>
                  <p>比如f(4,4)的求解</p>
                  <p>●1●2●3●4 黑点表示50美分的人,1234表示可以插的空</p>
                  <p>第一个空可以有0人,可以有1个人.但不可能有2个人及以上</p>
                  <p>1.当有1人的时候,这个位置4个人四选一,剩下的方式为f(3,3),故为4*f(3,3)</p>
                  <p>2.当没有的人的时候,则方式为f(4,3)</p>
                  <p>所以排列方式为f(4,4)=4<em>f(3,3)+f(4,3)=A(4)(0)</em>f(4,3)+A(4)(1)*f(3,3)</p>
                  <p>注:A(m)(n)在此表示m!/(m-n)! 如A(4)(2)表示4x3=12.A(5)(3)表示5x4x3=60.</p>
                  <p>再如:f(4,3)的求解</p>
                  <p>是四个人插后三个空,</p>
                  <p>● ●1●2●3 黑点表示50美分的人,123表示可以插的空</p>
                  <p>第一个空可以没人,可以1个人,可以2个人,但不能有3人及以上.</p>
                  <p>1.当有0人的时候,则只有四个人插后两个空了,即为f(4,2)</p>
                  <p>2.当有1人的时候,选其中1人,四选一,剩下的3人插2个空,方法数为4*f(3,2)</p>
                  <p>3.当有2人的时候,选其中的2人，四选二排列,剩下的2人插两个空,方法数为A(4)(2)*f(2,2)</p>
                  <p>所以排列方式为f(4,3)=f(4,2)+4<em>f(3,2)+A(4)(2)</em>f(2,2)=A(4)(0)<em>f(4,2)+A(4)(1)</em>f(3,2)+A(4,2)*f(2,2)</p>
                  <p>发现规律了吗?在此我们可以总结出递推式</p>
                  <p><img src="http://img.blog.csdn.net/20140525121115437" alt=""></p>
                  <p>所以最后的结果就简单了,我们再乘上50美分的人的全排列就是最后的结果了.</p>
                  <p>最后的答案即为A(n)(n)*f(n,n)</p>
                  <p>JAVA代码实现如下:</p>
                  <figure class="highlight reasonml">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="comment">/*</span></span><br><span class="line"><span class="comment"> * 排队问题求解</span></span><br><span class="line"><span class="comment"> */</span></span><br><span class="line">import java.math.*;</span><br><span class="line">public <span class="keyword">class</span> Solve &#123;</span><br><span class="line">   public static void main(String<span class="literal">[]</span> args) &#123;</span><br><span class="line">	 <span class="comment">//n的值</span></span><br><span class="line">	  <span class="built_in">int</span> n =<span class="number">7</span>;</span><br><span class="line">	<span class="comment">//求得结果</span></span><br><span class="line">	 <span class="module-access"><span class="module"><span class="identifier">System</span>.</span></span>out.println(get<span class="constructor">Number(<span class="params">n</span>,<span class="params">n</span>)</span>.multiply(get<span class="constructor">Result(<span class="params">n</span>,<span class="params">n</span>)</span>));</span><br><span class="line">&#125;</span><br><span class="line">      <span class="comment">//即为f(n,m)函数实现</span></span><br><span class="line">   static BigInteger get<span class="constructor">Number(<span class="params">int</span> <span class="params">n</span>,<span class="params">int</span> <span class="params">m</span>)</span>&#123;</span><br><span class="line">	  <span class="comment">//当m=1返回Ann即n!</span></span><br><span class="line">        <span class="keyword">if</span>(m==<span class="number">1</span>) return get<span class="constructor">Result(<span class="params">n</span>,<span class="params">n</span>)</span>;</span><br><span class="line">      <span class="comment">//初始化result=0</span></span><br><span class="line">        BigInteger result =<span class="keyword">new</span> <span class="constructor">BigInteger(<span class="string">"0"</span>)</span>;</span><br><span class="line">		for(<span class="built_in">int</span> i=<span class="number">0</span>;i&lt;=n-m+<span class="number">1</span>;i++)&#123;</span><br><span class="line">			<span class="comment">//利用递归式子求解</span></span><br><span class="line">			result=result.add((get<span class="constructor">Result(<span class="params">n</span>,<span class="params">i</span>)</span>).multiply(get<span class="constructor">Number(<span class="params">n</span>-<span class="params">i</span>,<span class="params">m</span>-1)</span>));</span><br><span class="line">		&#125;</span><br><span class="line">		return result;</span><br><span class="line">   &#125;</span><br><span class="line">   static BigInteger get<span class="constructor">Result(<span class="params">int</span> <span class="params">m</span>,<span class="params">int</span> <span class="params">n</span>)</span>&#123;</span><br><span class="line">	   <span class="comment">//求Amn</span></span><br><span class="line">	   BigInteger result =<span class="keyword">new</span> <span class="constructor">BigInteger(<span class="string">"1"</span>)</span>;</span><br><span class="line">	   <span class="built_in">int</span> count=<span class="number">0</span>;</span><br><span class="line">	   <span class="comment">//如果n为0,返回Am0即为1</span></span><br><span class="line">	   <span class="keyword">if</span>(n==<span class="number">0</span>) return <span class="keyword">new</span> <span class="constructor">BigInteger(<span class="string">"1"</span>)</span>;</span><br><span class="line">	   for(<span class="built_in">int</span> i=m;;i--)&#123;</span><br><span class="line">		   result =result.multiply(<span class="keyword">new</span> <span class="constructor">BigInteger(<span class="string">""</span>+<span class="params">i</span>)</span>);</span><br><span class="line">		   count++;</span><br><span class="line">		   <span class="keyword">if</span>(count==n) break;</span><br><span class="line">	   &#125;</span><br><span class="line">	   return result;</span><br><span class="line">   &#125;</span><br><span class="line">&#125;</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>利用了BigInteger求解,防止越界的出现.在main函数里可以修改n的值来计算.</p>
                  </p>
                </div>
              </div>
              <div class="post-meta">
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-user"></i>
                  </span>
                  <span class="post-meta-item-text">作者</span>
                  <span><a href="/authors/崔庆才" class="author" itemprop="url" rel="index">崔庆才</a></span>
                </span>
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-calendar"></i>
                  </span>
                  <span class="post-meta-item-text">发表于</span>
                  <time title="创建时间：2014-09-10 12:55:36" itemprop="dateCreated datePublished" datetime="2014-09-10T12:55:36+08:00">2014-09-10</time>
                </span>
                <span id="/28.html" class="post-meta-item leancloud_visitors" data-flag-title="递归求解排队进电影院问题,附带JAVA代码" title="阅读次数">
                  <span class="post-meta-item-icon">
                    <i class="fa fa-eye"></i>
                  </span>
                  <span class="post-meta-item-text">阅读次数：</span>
                  <span class="leancloud-visitors-count"></span>
                </span>
                <span class="post-meta-item" title="本文字数">
                  <span class="post-meta-item-icon">
                    <i class="far fa-file-word"></i>
                  </span>
                  <span class="post-meta-item-text">本文字数：</span>
                  <span>1.9k</span>
                </span>
                <span class="post-meta-item" title="阅读时长">
                  <span class="post-meta-item-icon">
                    <i class="far fa-clock"></i>
                  </span>
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                  <span>2 分钟</span>
                </span>
              </div>
            </article>
            <article itemscope itemtype="http://schema.org/Article" class="post-block index" lang="zh-CN">
              <link itemprop="mainEntityOfPage" href="https://cuiqingcai.com/27.html">
              <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
                <meta itemprop="image" content="/images/avatar.png">
                <meta itemprop="name" content="崔庆才">
                <meta itemprop="description" content="崔庆才的个人站点，记录生活的瞬间，分享学习的心得。">
              </span>
              <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
                <meta itemprop="name" content="静觅">
              </span>
              <header class="post-header">
                <h2 class="post-title" itemprop="name headline">
                  <a class="label"> PHP <i class="label-arrow"></i>
                  </a>
                  <a href="/27.html" class="post-title-link" itemprop="url">PHP提取数据库数据并转化为二维json的方法</a>
                </h2>
              </header>
              <div class="post-body" itemprop="articleBody">
                <div class="thumb">
                  <img itemprop="contentUrl" class="random">
                </div>
                <div class="excerpt">
                  <p>
                  <figure class="highlight makefile">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="section">首先贴一段示例代码:</span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <figure class="highlight xml">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="php"><span class="meta">&lt;?php</span></span></span><br><span class="line"><span class="php"><span class="keyword">include</span> <span class="string">"con_db.php"</span>;<span class="comment">//连接数据库</span></span></span><br><span class="line"><span class="php">$sql=<span class="string">"select * from note order by note_date desc limit "</span>.($index*<span class="number">10</span>).<span class="string">",10"</span>; <span class="comment">//sql语句</span></span></span><br><span class="line"><span class="php">	$result=mysql_query($sql);<span class="comment">//获得结果</span></span></span><br><span class="line"><span class="php">$note;$i=<span class="number">0</span>; <span class="comment">//初始化变量</span></span></span><br><span class="line"><span class="php"><span class="keyword">while</span>($infor=mysql_fetch_array($result))</span></span><br><span class="line"><span class="php">	&#123;</span></span><br><span class="line"><span class="php">        <span class="comment">//把结果放到一个一维数组里</span></span></span><br><span class="line"><span class="php">	$note[<span class="string">"id"</span>]=$infor[<span class="string">'note_id'</span>];</span></span><br><span class="line"><span class="php">  	$note[<span class="string">"content"</span>]=$infor[<span class="string">'note_content'</span>];</span></span><br><span class="line"><span class="php">        $note[<span class="string">"date"</span>]=$infor[<span class="string">'note_date'</span>];</span></span><br><span class="line"><span class="php">        $note[<span class="string">"username"</span>]=$infor[<span class="string">'username'</span>];</span></span><br><span class="line"><span class="php">        <span class="comment">//放到二维数组里</span></span></span><br><span class="line"><span class="php">        $notes[$i++]=$note;</span></span><br><span class="line"><span class="php">	&#125;</span></span><br><span class="line"><span class="php">     <span class="keyword">echo</span> json_encode($notes );</span></span><br><span class="line"><span class="php"><span class="meta">?&gt;</span></span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>输出结果：</p>
                  <figure class="highlight json">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">[&#123;<span class="attr">"id"</span>:<span class="string">"12"</span>,<span class="attr">"content"</span>:<span class="string">"u662f"</span>,<span class="attr">"date"</span>:<span class="string">"2014-05-24 09:31:52"</span>,<span class="attr">"username"</span>:<span class="string">"u532f"</span>&#125;,</span><br><span class="line">&#123;<span class="attr">"id"</span>:<span class="string">"31"</span>,<span class="attr">"content"</span>:<span class="string">"u642f"</span>,<span class="attr">"date"</span>:<span class="string">"2014-05-24 09:31:49"</span>,<span class="attr">"username"</span>:<span class="string">"u322f"</span>&#125;,</span><br><span class="line">&#123;<span class="attr">"id"</span>:<span class="string">"70"</span>,<span class="attr">"content"</span>:<span class="string">"u692f"</span>,<span class="attr">"date"</span>:<span class="string">"2014-05-24 09:31:48"</span>,<span class="attr">"username"</span>:<span class="string">"u132f"</span>&#125;]</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>你会发现应该输出的汉字变成了unicode字符集.</p>
                  <p>这时我们就要用到urlencode的方法，把汉字用urlencode方法编码,转化为json之后再用urldecode解码.看如下例子：</p>
                  <figure class="highlight xml">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="php"><span class="meta">&lt;?php</span></span></span><br><span class="line"><span class="php">	$h =urlencode(<span class="string">"开心"</span>);</span></span><br><span class="line"><span class="php">	<span class="keyword">echo</span> $h;</span></span><br><span class="line"><span class="php">	$x =urldecode($h);</span></span><br><span class="line"><span class="php">	<span class="keyword">echo</span> $x;</span></span><br><span class="line"><span class="php"><span class="meta">?&gt;</span></span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>输出结果：</p>
                  <figure class="highlight cos">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="built_in">%BF</span><span class="built_in">%AA</span><span class="built_in">%D</span>0<span class="built_in">%C</span>4开心</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>这样通过中间过程的编码和解码,转化成json的过程便不会自动把汉字变成Unicode字符集了.所以最后的方法为：</p>
                  <figure class="highlight xml">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="php"><span class="meta">&lt;?php</span></span></span><br><span class="line"><span class="php"><span class="keyword">while</span>($infor=mysql_fetch_array($re))</span></span><br><span class="line"><span class="php">	&#123;</span></span><br><span class="line"><span class="php">	$note[<span class="string">"id"</span>]=$infor[<span class="string">'note_id'</span>];<span class="comment">//数字不需要编码</span></span></span><br><span class="line"><span class="php">  	$note[<span class="string">"content"</span>]=urlencode($infor[<span class="string">'note_content'</span>]);<span class="comment">//汉字需要编码</span></span></span><br><span class="line"><span class="php">        $note[<span class="string">"date"</span>]=$infor[<span class="string">'note_date'</span>];</span></span><br><span class="line"><span class="php">        $note[<span class="string">"username"</span>]=urlencode($infor[<span class="string">'username'</span>]);</span></span><br><span class="line"><span class="php">        $notes[$i++]=$note;</span></span><br><span class="line"><span class="php">	&#125;</span></span><br><span class="line"><span class="php">     <span class="keyword">echo</span> urldecode(json_encode($notes ));<span class="comment">//转化成json之后再用urldecode解码为汉字</span></span></span><br><span class="line"><span class="php"><span class="meta">?&gt;</span></span></span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>结果如下：</p>
                  <figure class="highlight json">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line">[&#123;<span class="attr">"id"</span>:<span class="string">"22"</span>,<span class="attr">"content"</span>:<span class="string">"文章"</span>,<span class="attr">"date"</span>:<span class="string">"2014-05-24 09:31:52"</span>,<span class="attr">"username"</span>:<span class="string">"王"</span>&#125;,</span><br><span class="line">&#123;<span class="attr">"id"</span>:<span class="string">"21"</span>,<span class="attr">"content"</span>:<span class="string">"内容"</span>,<span class="attr">"date"</span>:<span class="string">"2014-05-24 09:31:49"</span>,<span class="attr">"username"</span>:<span class="string">"李"</span>&#125;,</span><br><span class="line">&#123;<span class="attr">"id"</span>:<span class="string">"20"</span>,<span class="attr">"content"</span>:<span class="string">"可以"</span>,<span class="attr">"date"</span>:<span class="string">"2014-05-24 09:31:48"</span>,<span class="attr">"username"</span>:<span class="string">"冯"</span>&#125;]</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  <p>这样我们就成功地把二维数组转化成了json了.</p>
                  <p>如有问题,请在下方评论,我会及时回复的.</p>
                  </p>
                </div>
              </div>
              <div class="post-meta">
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-user"></i>
                  </span>
                  <span class="post-meta-item-text">作者</span>
                  <span><a href="/authors/崔庆才" class="author" itemprop="url" rel="index">崔庆才</a></span>
                </span>
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-calendar"></i>
                  </span>
                  <span class="post-meta-item-text">发表于</span>
                  <time title="创建时间：2014-09-10 12:54:54" itemprop="dateCreated datePublished" datetime="2014-09-10T12:54:54+08:00">2014-09-10</time>
                </span>
                <span id="/27.html" class="post-meta-item leancloud_visitors" data-flag-title="PHP提取数据库数据并转化为二维json的方法" title="阅读次数">
                  <span class="post-meta-item-icon">
                    <i class="fa fa-eye"></i>
                  </span>
                  <span class="post-meta-item-text">阅读次数：</span>
                  <span class="leancloud-visitors-count"></span>
                </span>
                <span class="post-meta-item" title="本文字数">
                  <span class="post-meta-item-icon">
                    <i class="far fa-file-word"></i>
                  </span>
                  <span class="post-meta-item-text">本文字数：</span>
                  <span>1.6k</span>
                </span>
                <span class="post-meta-item" title="阅读时长">
                  <span class="post-meta-item-icon">
                    <i class="far fa-clock"></i>
                  </span>
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                  <span>1 分钟</span>
                </span>
              </div>
            </article>
            <article itemscope itemtype="http://schema.org/Article" class="post-block index" lang="zh-CN">
              <link itemprop="mainEntityOfPage" href="https://cuiqingcai.com/26.html">
              <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
                <meta itemprop="image" content="/images/avatar.png">
                <meta itemprop="name" content="崔庆才">
                <meta itemprop="description" content="崔庆才的个人站点，记录生活的瞬间，分享学习的心得。">
              </span>
              <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
                <meta itemprop="name" content="静觅">
              </span>
              <header class="post-header">
                <h2 class="post-title" itemprop="name headline">
                  <a class="label"> PHP <i class="label-arrow"></i>
                  </a>
                  <a href="/26.html" class="post-title-link" itemprop="url">更改Wamp下网站地址栏图标的显示</a>
                </h2>
              </header>
              <div class="post-body" itemprop="articleBody">
                <div class="thumb">
                  <img itemprop="contentUrl" class="random">
                </div>
                <div class="excerpt">
                  <p>
                  <p>大家应该遇到这样一个问题，我们利用wamp做服务器运行网页的时候，网页地址栏显示的图标一直是wampserver默认的图标，想改一下怎么办呢？</p>
                  <p>问题如下：</p>
                  <p><img src="http://img.blog.csdn.net/20140704234552031?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>就是这些图标，如何自定义自己的图标，而不是wamp默认图标。</p>
                  <p>首先这个图标大小像素为16x16，大家可以自己制作，也可以上传图片来制作.</p>
                  <p>最好为ico格式的，如果想要上传图片制作的话可以访问这个网址：<a href="http://www.bitbug.net/" target="_blank" rel="noopener">http://www.bitbug.net/</a></p>
                  <p>可以为你生成一个icon图标.</p>
                  <p>比如我生成的图标命名为favicon.ico</p>
                  <p>我们需要将其放在www文件夹下,你的项目文件夹里面.</p>
                  <p>比如这样：</p>
                  <p><img src="http://img.blog.csdn.net/20140704234516031?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY3FjcmU=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt=""></p>
                  <p>然后在index.php文件中插入代码如下：</p>
                  <ol>
                    <li>
                      <link href\="favicon.ico" rel\="shortcut icon" \>
                    </li>
                  </ol>
                  <p>保存重新刷新一下。</p>
                  <p>这下我们就会发现地址栏的图标已经更换成功啦！</p>
                  </p>
                </div>
              </div>
              <div class="post-meta">
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-user"></i>
                  </span>
                  <span class="post-meta-item-text">作者</span>
                  <span><a href="/authors/崔庆才" class="author" itemprop="url" rel="index">崔庆才</a></span>
                </span>
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-calendar"></i>
                  </span>
                  <span class="post-meta-item-text">发表于</span>
                  <time title="创建时间：2014-09-10 12:53:55" itemprop="dateCreated datePublished" datetime="2014-09-10T12:53:55+08:00">2014-09-10</time>
                </span>
                <span id="/26.html" class="post-meta-item leancloud_visitors" data-flag-title="更改Wamp下网站地址栏图标的显示" title="阅读次数">
                  <span class="post-meta-item-icon">
                    <i class="fa fa-eye"></i>
                  </span>
                  <span class="post-meta-item-text">阅读次数：</span>
                  <span class="leancloud-visitors-count"></span>
                </span>
                <span class="post-meta-item" title="本文字数">
                  <span class="post-meta-item-icon">
                    <i class="far fa-file-word"></i>
                  </span>
                  <span class="post-meta-item-text">本文字数：</span>
                  <span>317</span>
                </span>
                <span class="post-meta-item" title="阅读时长">
                  <span class="post-meta-item-icon">
                    <i class="far fa-clock"></i>
                  </span>
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                  <span>1 分钟</span>
                </span>
              </div>
            </article>
            <article itemscope itemtype="http://schema.org/Article" class="post-block index" lang="zh-CN">
              <link itemprop="mainEntityOfPage" href="https://cuiqingcai.com/25.html">
              <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
                <meta itemprop="image" content="/images/avatar.png">
                <meta itemprop="name" content="崔庆才">
                <meta itemprop="description" content="崔庆才的个人站点，记录生活的瞬间，分享学习的心得。">
              </span>
              <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
                <meta itemprop="name" content="静觅">
              </span>
              <header class="post-header">
                <h2 class="post-title" itemprop="name headline">
                  <a class="label"> C/C++ <i class="label-arrow"></i>
                  </a>
                  <a href="/25.html" class="post-title-link" itemprop="url">Cocos2d-x 场景切换动画大全</a>
                </h2>
              </header>
              <div class="post-body" itemprop="articleBody">
                <div class="thumb">
                  <img itemprop="contentUrl" class="random">
                </div>
                <div class="excerpt">
                  <p>
                  <figure class="highlight jboss-cli">
                    <table>
                      <tr>
                        <td class="gutter">
                          <pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br></pre>
                        </td>
                        <td class="code">
                          <pre><span class="line"><span class="string">//</span>    CCTransitionJumpZoom</span><br><span class="line"><span class="string">//</span>    作用： 创建一个跳动的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换到目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionJumpZoom :<span class="function">:create</span><span class="params">(t , s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionProgressRadialCCW</span><br><span class="line"><span class="string">//</span>    作用： 创建一个扇形条形式的过渡动画， 逆时针方向</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换到目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionProgressRadialCCW:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionProgressRadialCW</span><br><span class="line"><span class="string">//</span>    作用： 创建一个扇形条形式的过渡动画， 顺时针方向</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换到目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionProgressRadialCW:<span class="function">:create</span><span class="params">(t,s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionProgressHorizontal</span><br><span class="line"><span class="string">//</span>    作用： 创建一个水平条形式的过渡动画，</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换到目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionProgressHorizontal :<span class="function">:create</span><span class="params">(t,s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionProgressVertical</span><br><span class="line"><span class="string">//</span>    作用： 创建一个垂直条形式的过渡动画，</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换到目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionProgressVertical:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionProgressInOut</span><br><span class="line"><span class="string">//</span>    作用： 创建一个由里向外扩展的过渡动画，</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换到目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionProgressInOut:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionProgressOutIn</span><br><span class="line"><span class="string">//</span>    作用： 创建一个由外向里扩展的过渡动画，</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换到目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionProgressOutIn:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionCrossFade</span><br><span class="line"><span class="string">//</span>    作用：创建一个逐渐透明的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换到目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionCrossFade:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionPageTurn</span><br><span class="line"><span class="string">//</span>    作用：创建一个翻页的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作持续的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    参数3：是否逆向翻页</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionPageTurn:<span class="function">:create</span><span class="params">(t, s, false)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionFadeTR</span><br><span class="line"><span class="string">//</span>    作用：创建一个部落格过渡动画， 从左下到右上</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作持续的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene =CCTransitionFadeTR:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionFadeBL</span><br><span class="line"><span class="string">//</span>    作用：创建一个部落格过渡动画， 从右上到左下</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作持续的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionFadeBL:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionFadeUp</span><br><span class="line"><span class="string">//</span>    作用：创建一个从下到上，条形折叠的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作持续的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene= CCTransitionFadeUp:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(s)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionFadeDown</span><br><span class="line"><span class="string">//</span>    作用：创建一个从上到下，条形折叠的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作持续的时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionFadeDown:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionTurnOffTiles</span><br><span class="line"><span class="string">//</span>    作用：创建一个随机方格消失的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene= CCTransitionTurnOffTiles:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionSplitRows</span><br><span class="line"><span class="string">//</span>    作用：创建一个分行划分切换的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionSplitRows:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionSplitCols</span><br><span class="line"><span class="string">//</span>    作用：创建一个分列划分切换的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionSplitCols:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionFade</span><br><span class="line"><span class="string">//</span>    作用：创建一个逐渐过渡到目标颜色的切换动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    参数3：目标颜色</span><br><span class="line"><span class="string">//</span>    reScene= CCTransitionFade:<span class="function">:create</span><span class="params">(t, s, ccc3(255, 0, 0)</span>);</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionFlipX</span><br><span class="line"><span class="string">//</span>    作用：创建一个x轴反转的切换动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    参数3：反转类型的枚举变量   左右上下</span><br><span class="line"><span class="string">//</span>    kOrientationDownOver kOrientationLeftOver kOrientationRightOver  kOrientationUpOver</span><br><span class="line"><span class="string">//</span>    reScene  = CCTransitionFlipX:<span class="function">:create</span><span class="params">(t, s, kOrientationRightOver)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionFlipY</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    参数3：反转类型的枚举变量   左右上下</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionFlipY:<span class="function">:create</span><span class="params">(t, s</span></span><br><span class="line"><span class="params">//                                        , kOrientationDownOver)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionFlipAngular</span><br><span class="line"><span class="string">//</span>    作用：创建一个带有反转角切换动画</span><br><span class="line"><span class="string">//</span>        <span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    参数3：反转类型的枚举变量   左右上下</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionFlipAngular:<span class="function">:create</span><span class="params">(t, s, kOrientationLeftOver)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionZoomFlipX</span><br><span class="line"><span class="string">//</span>    作用：创建一个带有缩放的x轴反转切换的动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    参数3：反转类型的枚举变量   左右上下</span><br><span class="line"><span class="string">//</span>    reScene=CCTransitionZoomFlipX:<span class="function">:create</span><span class="params">(t, s, kOrientationLeftOver)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionZoomFlipY</span><br><span class="line"><span class="string">//</span>    作用：创建一个带有缩放的Y轴反转切换的动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    参数3：反转类型的枚举变量   左右上下</span><br><span class="line"><span class="string">//</span>    reScene=CCTransitionZoomFlipY:<span class="function">:create</span><span class="params">(t, s, kOrientationDownOver)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionZoomFlipAngular</span><br><span class="line"><span class="string">//</span>    作用：创建一个带有缩放 ，反转角切换的动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    参数3：反转类型的枚举变量   左右上下</span><br><span class="line"><span class="string">//</span>    reScene=CCTransitionZoomFlipAngular:<span class="function">:create</span><span class="params">(t, s, kOrientationRightOver)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionShrinkGrow</span><br><span class="line"><span class="string">//</span>    创建一个放缩交替的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionShrinkGrow:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionRotoZoom</span><br><span class="line"><span class="string">//</span> &lt;span&gt;	&lt;<span class="string">/span</span>&gt;  创建一个旋转放缩交替的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionRotoZoom:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionMoveInL</span><br><span class="line"><span class="string">//</span>    作用：创建一个从左边推入覆盖的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionMoveInL:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionMoveInR</span><br><span class="line"><span class="string">//</span>    作用：创建一个从右边推入覆盖的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionMoveInR:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionMoveInB</span><br><span class="line"><span class="string">//</span>    作用：创建一个从下边推入覆盖的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionMoveInB:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionMoveInT</span><br><span class="line"><span class="string">//</span>    作用：创建一个从上边推入覆盖的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene = CCTransitionMoveInT:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionSlideInL</span><br><span class="line"><span class="string">//</span>    作用：创建一个从左侧推入并顶出旧场景的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene  =CCTransitionSlideInL:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionSlideInR</span><br><span class="line"><span class="string">//</span>    作用：创建一个从右侧推入并顶出旧场景的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene  =CCTransitionSlideInR:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionSlideInT</span><br><span class="line"><span class="string">//</span>    作用：创建一个从顶部推入并顶出旧场景的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene  =CCTransitionSlideInT:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br><span class="line"></span><br><span class="line"><span class="string">//</span>    CCTransitionSlideInB</span><br><span class="line"><span class="string">//</span>    作用：创建一个从下部推入并顶出旧场景的过渡动画</span><br><span class="line"><span class="string">//</span>    参数1：过渡动作的持续时间</span><br><span class="line"><span class="string">//</span>    参数2：切换的目标场景的对象</span><br><span class="line"><span class="string">//</span>    reScene  =CCTransitionSlideInB:<span class="function">:create</span><span class="params">(t, s)</span>;</span><br><span class="line"><span class="string">//</span>    CCDirector:<span class="function">:sharedDirector</span><span class="params">()</span>-&gt;replaceScene<span class="params">(reScene)</span>;</span><br></pre>
                        </td>
                      </tr>
                    </table>
                  </figure>
                  </p>
                </div>
              </div>
              <div class="post-meta">
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-user"></i>
                  </span>
                  <span class="post-meta-item-text">作者</span>
                  <span><a href="/authors/崔庆才" class="author" itemprop="url" rel="index">崔庆才</a></span>
                </span>
                <span class="post-meta-item">
                  <span class="post-meta-item-icon">
                    <i class="far fa-calendar"></i>
                  </span>
                  <span class="post-meta-item-text">发表于</span>
                  <time title="创建时间：2014-09-10 12:40:07" itemprop="dateCreated datePublished" datetime="2014-09-10T12:40:07+08:00">2014-09-10</time>
                </span>
                <span id="/25.html" class="post-meta-item leancloud_visitors" data-flag-title="Cocos2d-x 场景切换动画大全" title="阅读次数">
                  <span class="post-meta-item-icon">
                    <i class="fa fa-eye"></i>
                  </span>
                  <span class="post-meta-item-text">阅读次数：</span>
                  <span class="leancloud-visitors-count"></span>
                </span>
                <span class="post-meta-item" title="本文字数">
                  <span class="post-meta-item-icon">
                    <i class="far fa-file-word"></i>
                  </span>
                  <span class="post-meta-item-text">本文字数：</span>
                  <span>6.8k</span>
                </span>
                <span class="post-meta-item" title="阅读时长">
                  <span class="post-meta-item-icon">
                    <i class="far fa-clock"></i>
                  </span>
                  <span class="post-meta-item-text">阅读时长 &asymp;</span>
                  <span>6 分钟</span>
                </span>
              </div>
            </article>
            <script>
              document.querySelectorAll('.random').forEach(item => item.src = "https://picsum.photos/id/" + Math.floor(Math.random() * Math.floor(300)) + "/200/133")

            </script>
            <nav class="pagination">
              <a class="extend prev" rel="prev" href="/page/30/"><i class="fa fa-angle-left" aria-label="上一页"></i></a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/30/">30</a><span class="page-number current">31</span>
            </nav>
          </div>
          <script>
            window.addEventListener('tabs:register', () =>
            {
              let
              {
                activeClass
              } = CONFIG.comments;
              if (CONFIG.comments.storage)
              {
                activeClass = localStorage.getItem('comments_active') || activeClass;
              }
              if (activeClass)
              {
                let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
                if (activeTab)
                {
                  activeTab.click();
                }
              }
            });
            if (CONFIG.comments.storage)
            {
              window.addEventListener('tabs:click', event =>
              {
                if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
                let commentClass = event.target.classList[1];
                localStorage.setItem('comments_active', commentClass);
              });
            }

          </script>
        </div>
        <div class="toggle sidebar-toggle">
          <span class="toggle-line toggle-line-first"></span>
          <span class="toggle-line toggle-line-middle"></span>
          <span class="toggle-line toggle-line-last"></span>
        </div>
        <aside class="sidebar">
          <div class="sidebar-inner">
            <ul class="sidebar-nav motion-element">
              <li class="sidebar-nav-toc"> 文章目录 </li>
              <li class="sidebar-nav-overview"> 站点概览 </li>
            </ul>
            <!--noindex-->
            <div class="post-toc-wrap sidebar-panel">
            </div>
            <!--/noindex-->
            <div class="site-overview-wrap sidebar-panel">
              <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
                <img class="site-author-image" itemprop="image" alt="崔庆才" src="/images/avatar.png">
                <p class="site-author-name" itemprop="name">崔庆才</p>
                <div class="site-description" itemprop="description">崔庆才的个人站点，记录生活的瞬间，分享学习的心得。</div>
              </div>
              <div class="site-state-wrap motion-element">
                <nav class="site-state">
                  <div class="site-state-item site-state-posts">
                    <a href="/archives/">
                      <span class="site-state-item-count">608</span>
                      <span class="site-state-item-name">日志</span>
                    </a>
                  </div>
                  <div class="site-state-item site-state-categories">
                    <a href="/categories/">
                      <span class="site-state-item-count">24</span>
                      <span class="site-state-item-name">分类</span></a>
                  </div>
                  <div class="site-state-item site-state-tags">
                    <a href="/tags/">
                      <span class="site-state-item-count">156</span>
                      <span class="site-state-item-name">标签</span></a>
                  </div>
                </nav>
              </div>
              <div class="links-of-author motion-element">
                <span class="links-of-author-item">
                  <a href="https://github.com/Germey" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;Germey" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
                </span>
                <span class="links-of-author-item">
                  <a href="mailto:cqc@cuiqingcai.com.com" title="邮件 → mailto:cqc@cuiqingcai.com.com" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>邮件</a>
                </span>
                <span class="links-of-author-item">
                  <a href="https://weibo.com/cuiqingcai" title="微博 → https:&#x2F;&#x2F;weibo.com&#x2F;cuiqingcai" rel="noopener" target="_blank"><i class="fab fa-weibo fa-fw"></i>微博</a>
                </span>
                <span class="links-of-author-item">
                  <a href="https://www.zhihu.com/people/Germey" title="知乎 → https:&#x2F;&#x2F;www.zhihu.com&#x2F;people&#x2F;Germey" rel="noopener" target="_blank"><i class="fa fa-magic fa-fw"></i>知乎</a>
                </span>
              </div>
            </div>
            <div style=" width: 100%;" class="sidebar-panel sidebar-panel-image sidebar-panel-active">
              <a href="https://tutorial.lengyue.video/?coupon=12ef4b1a-a3db-11ea-bb37-0242ac130002_cqx_850" target="_blank" rel="noopener">
                <img src="https://qiniu.cuiqingcai.com/bco2a.png" style=" width: 100%;">
              </a>
            </div>
            <div style=" width: 100%;" class="sidebar-panel sidebar-panel-image sidebar-panel-active">
              <a href="http://www.ipidea.net/?utm-source=cqc&utm-keyword=?cqc" target="_blank" rel="noopener">
                <img src="https://qiniu.cuiqingcai.com/0ywun.png" style=" width: 100%;">
              </a>
            </div>
            <div class="sidebar-panel sidebar-panel-tags sidebar-panel-active">
              <h4 class="name"> 标签云 </h4>
              <div class="content">
                <a href="/tags/2048/" style="font-size: 10px;">2048</a> <a href="/tags/API/" style="font-size: 10px;">API</a> <a href="/tags/Bootstrap/" style="font-size: 11.25px;">Bootstrap</a> <a href="/tags/CDN/" style="font-size: 10px;">CDN</a> <a href="/tags/CQC/" style="font-size: 10px;">CQC</a> <a href="/tags/CSS/" style="font-size: 10px;">CSS</a> <a href="/tags/CSS-%E5%8F%8D%E7%88%AC%E8%99%AB/" style="font-size: 10px;">CSS 反爬虫</a> <a href="/tags/CV/" style="font-size: 10px;">CV</a> <a href="/tags/Django/" style="font-size: 10px;">Django</a> <a href="/tags/Eclipse/" style="font-size: 11.25px;">Eclipse</a> <a href="/tags/FTP/" style="font-size: 10px;">FTP</a> <a href="/tags/Git/" style="font-size: 10px;">Git</a> <a href="/tags/GitHub/" style="font-size: 13.75px;">GitHub</a> <a href="/tags/HTML5/" style="font-size: 10px;">HTML5</a> <a href="/tags/Hexo/" style="font-size: 10px;">Hexo</a> <a href="/tags/IT/" style="font-size: 10px;">IT</a> <a href="/tags/JSP/" style="font-size: 10px;">JSP</a> <a href="/tags/JavaScript/" style="font-size: 10px;">JavaScript</a> <a href="/tags/K8s/" style="font-size: 10px;">K8s</a> <a href="/tags/LOGO/" style="font-size: 10px;">LOGO</a> <a href="/tags/Linux/" style="font-size: 10px;">Linux</a> <a href="/tags/MIUI/" style="font-size: 10px;">MIUI</a> <a href="/tags/MongoDB/" style="font-size: 10px;">MongoDB</a> <a href="/tags/Mysql/" style="font-size: 10px;">Mysql</a> <a href="/tags/NBA/" style="font-size: 10px;">NBA</a> <a href="/tags/PHP/" style="font-size: 11.25px;">PHP</a> <a href="/tags/PS/" style="font-size: 10px;">PS</a> <a href="/tags/Pathlib/" style="font-size: 10px;">Pathlib</a> <a href="/tags/PhantomJS/" style="font-size: 10px;">PhantomJS</a> <a href="/tags/Python/" style="font-size: 15px;">Python</a> <a href="/tags/Python3/" style="font-size: 12.5px;">Python3</a> <a href="/tags/Pythonic/" style="font-size: 10px;">Pythonic</a> <a href="/tags/QQ/" style="font-size: 10px;">QQ</a> <a href="/tags/Redis/" style="font-size: 10px;">Redis</a> <a href="/tags/SAE/" style="font-size: 10px;">SAE</a> <a href="/tags/SSH/" style="font-size: 10px;">SSH</a> <a href="/tags/SVG/" style="font-size: 10px;">SVG</a> <a href="/tags/Scrapy/" style="font-size: 10px;">Scrapy</a> <a href="/tags/Scrapy-redis/" style="font-size: 10px;">Scrapy-redis</a> <a href="/tags/Scrapy%E5%88%86%E5%B8%83%E5%BC%8F/" style="font-size: 10px;">Scrapy分布式</a> <a href="/tags/Selenium/" style="font-size: 10px;">Selenium</a> <a href="/tags/TKE/" style="font-size: 10px;">TKE</a> <a href="/tags/Ubuntu/" style="font-size: 11.25px;">Ubuntu</a> <a href="/tags/VS-Code/" style="font-size: 10px;">VS Code</a> <a href="/tags/Vs-Code/" style="font-size: 10px;">Vs Code</a> <a href="/tags/Vue/" style="font-size: 11.25px;">Vue</a> <a href="/tags/Webpack/" style="font-size: 10px;">Webpack</a> <a href="/tags/Windows/" style="font-size: 10px;">Windows</a> <a href="/tags/Winpcap/" style="font-size: 10px;">Winpcap</a> <a href="/tags/WordPress/" style="font-size: 13.75px;">WordPress</a> <a href="/tags/Youtube/" style="font-size: 11.25px;">Youtube</a> <a href="/tags/android/" style="font-size: 10px;">android</a> <a href="/tags/ansible/" style="font-size: 10px;">ansible</a> <a href="/tags/cocos2d-x/" style="font-size: 10px;">cocos2d-x</a> <a href="/tags/e6/" style="font-size: 10px;">e6</a> <a href="/tags/fitvids/" style="font-size: 10px;">fitvids</a> <a href="/tags/git/" style="font-size: 11.25px;">git</a> <a href="/tags/json/" style="font-size: 10px;">json</a> <a href="/tags/js%E9%80%86%E5%90%91/" style="font-size: 10px;">js逆向</a> <a href="/tags/kubernetes/" style="font-size: 10px;">kubernetes</a> <a href="/tags/log/" style="font-size: 10px;">log</a> <a href="/tags/logging/" style="font-size: 10px;">logging</a> <a href="/tags/matlab/" style="font-size: 11.25px;">matlab</a> <a href="/tags/python/" style="font-size: 20px;">python</a> <a href="/tags/pytube/" style="font-size: 11.25px;">pytube</a> <a href="/tags/pywin32/" style="font-size: 10px;">pywin32</a> <a href="/tags/style/" style="font-size: 10px;">style</a> <a href="/tags/tomcat/" style="font-size: 10px;">tomcat</a> <a href="/tags/ubuntu/" style="font-size: 10px;">ubuntu</a> <a href="/tags/uwsgi/" style="font-size: 10px;">uwsgi</a> <a href="/tags/vsftpd/" style="font-size: 10px;">vsftpd</a> <a href="/tags/wamp/" style="font-size: 10px;">wamp</a> <a href="/tags/wineQQ/" style="font-size: 10px;">wineQQ</a> <a href="/tags/%E4%B8%83%E7%89%9B/" style="font-size: 11.25px;">七牛</a> <a href="/tags/%E4%B8%8A%E6%B5%B7/" style="font-size: 10px;">上海</a> <a href="/tags/%E4%B8%AA%E4%BA%BA%E7%BD%91%E7%AB%99/" style="font-size: 10px;">个人网站</a> <a href="/tags/%E4%B8%BB%E9%A2%98/" style="font-size: 10px;">主题</a> <a href="/tags/%E4%BA%91%E4%BA%A7%E5%93%81/" style="font-size: 10px;">云产品</a> <a href="/tags/%E4%BA%91%E5%AD%98%E5%82%A8/" style="font-size: 10px;">云存储</a> <a href="/tags/%E4%BA%AC%E4%B8%9C%E4%BA%91/" style="font-size: 10px;">京东云</a> <a href="/tags/%E4%BA%BA%E5%B7%A5%E6%99%BA%E8%83%BD/" style="font-size: 12.5px;">人工智能</a> <a href="/tags/%E4%BB%A3%E7%90%86/" style="font-size: 10px;">代理</a> <a href="/tags/%E4%BB%A3%E7%A0%81/" style="font-size: 10px;">代码</a> <a href="/tags/%E4%BB%A3%E7%A0%81%E5%88%86%E4%BA%AB%E5%9B%BE/" style="font-size: 10px;">代码分享图</a> <a href="/tags/%E4%BC%98%E5%8C%96/" style="font-size: 10px;">优化</a> <a href="/tags/%E4%BD%8D%E8%BF%90%E7%AE%97/" style="font-size: 10px;">位运算</a> <a href="/tags/%E5%85%AC%E4%BC%97%E5%8F%B7/" style="font-size: 10px;">公众号</a> <a href="/tags/%E5%88%86%E4%BA%AB/" style="font-size: 10px;">分享</a> <a href="/tags/%E5%88%86%E5%B8%83%E5%BC%8F/" style="font-size: 10px;">分布式</a> <a href="/tags/%E5%88%9B%E4%B8%9A/" style="font-size: 10px;">创业</a> <a href="/tags/%E5%89%8D%E7%AB%AF/" style="font-size: 12.5px;">前端</a> <a href="/tags/%E5%8D%9A%E5%AE%A2/" style="font-size: 10px;">博客</a> <a href="/tags/%E5%8E%9F%E7%94%9FAPP/" style="font-size: 10px;">原生APP</a> <a href="/tags/%E5%8F%8D%E7%88%AC%E8%99%AB/" style="font-size: 12.5px;">反爬虫</a> <a href="/tags/%E5%91%BD%E4%BB%A4/" style="font-size: 10px;">命令</a> <a href="/tags/%E5%93%8D%E5%BA%94%E5%BC%8F%E5%B8%83%E5%B1%80/" style="font-size: 10px;">响应式布局</a> <a href="/tags/%E5%9E%83%E5%9C%BE%E9%82%AE%E4%BB%B6/" style="font-size: 10px;">垃圾邮件</a> <a href="/tags/%E5%9F%9F%E5%90%8D%E7%BB%91%E5%AE%9A/" style="font-size: 10px;">域名绑定</a> <a href="/tags/%E5%A4%8D%E7%9B%98/" style="font-size: 10px;">复盘</a> <a href="/tags/%E5%A4%A7%E4%BC%97%E7%82%B9%E8%AF%84/" style="font-size: 10px;">大众点评</a> <a href="/tags/%E5%AD%97%E4%BD%93%E5%8F%8D%E7%88%AC%E8%99%AB/" style="font-size: 10px;">字体反爬虫</a> <a href="/tags/%E5%AD%97%E7%AC%A6%E9%97%AE%E9%A2%98/" style="font-size: 10px;">字符问题</a> <a href="/tags/%E5%AD%A6%E4%B9%A0%E6%96%B9%E6%B3%95/" style="font-size: 10px;">学习方法</a> <a href="/tags/%E5%AE%89%E5%8D%93/" style="font-size: 10px;">安卓</a> <a href="/tags/%E5%AE%9E%E7%94%A8/" style="font-size: 10px;">实用</a> <a href="/tags/%E5%B0%81%E9%9D%A2/" style="font-size: 10px;">封面</a> <a href="/tags/%E5%B4%94%E5%BA%86%E6%89%8D/" style="font-size: 18.75px;">崔庆才</a> <a href="/tags/%E5%B7%A5%E5%85%B7/" style="font-size: 12.5px;">工具</a> <a href="/tags/%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/" style="font-size: 10px;">开发工具</a> <a href="/tags/%E5%BE%AE%E8%BD%AF/" style="font-size: 10px;">微软</a> <a href="/tags/%E6%80%9D%E8%80%83/" style="font-size: 10px;">思考</a> <a href="/tags/%E6%89%8B%E6%9C%BA%E8%AE%BF%E9%97%AE/" style="font-size: 10px;">手机访问</a> <a href="/tags/%E6%95%99%E7%A8%8B/" style="font-size: 10px;">教程</a> <a href="/tags/%E6%95%99%E8%82%B2/" style="font-size: 10px;">教育</a> <a href="/tags/%E6%96%B0%E4%B9%A6/" style="font-size: 12.5px;">新书</a> <a href="/tags/%E6%96%B9%E6%B3%95%E8%AE%BA/" style="font-size: 10px;">方法论</a> <a href="/tags/%E6%97%85%E6%B8%B8/" style="font-size: 10px;">旅游</a> <a href="/tags/%E6%97%A5%E5%BF%97/" style="font-size: 10px;">日志</a> <a href="/tags/%E6%9A%97%E6%97%B6%E9%97%B4/" style="font-size: 10px;">暗时间</a> <a href="/tags/%E6%9D%9C%E5%85%B0%E7%89%B9/" style="font-size: 11.25px;">杜兰特</a> <a href="/tags/%E6%A1%8C%E9%9D%A2/" style="font-size: 10px;">桌面</a> <a href="/tags/%E6%AD%8C%E5%8D%95/" style="font-size: 10px;">歌单</a> <a href="/tags/%E6%B1%9F%E5%8D%97/" style="font-size: 10px;">江南</a> <a href="/tags/%E6%B8%B8%E6%88%8F/" style="font-size: 10px;">游戏</a> <a href="/tags/%E7%84%A6%E8%99%91/" style="font-size: 10px;">焦虑</a> <a href="/tags/%E7%88%AC%E8%99%AB/" style="font-size: 16.25px;">爬虫</a> <a href="/tags/%E7%88%AC%E8%99%AB%E4%B9%A6%E7%B1%8D/" style="font-size: 11.25px;">爬虫书籍</a> <a href="/tags/%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F/" style="font-size: 10px;">环境变量</a> <a href="/tags/%E7%94%9F%E6%B4%BB%E7%AC%94%E8%AE%B0/" style="font-size: 10px;">生活笔记</a> <a href="/tags/%E7%99%BB%E5%BD%95/" style="font-size: 10px;">登录</a> <a href="/tags/%E7%9F%A5%E4%B9%8E/" style="font-size: 10px;">知乎</a> <a href="/tags/%E7%9F%AD%E4%BF%A1/" style="font-size: 10px;">短信</a> <a href="/tags/%E7%9F%AD%E4%BF%A1%E9%AA%8C%E8%AF%81%E7%A0%81/" style="font-size: 10px;">短信验证码</a> <a href="/tags/%E7%AC%94%E8%AE%B0%E8%BD%AF%E4%BB%B6/" style="font-size: 10px;">笔记软件</a> <a href="/tags/%E7%AF%AE%E7%BD%91/" style="font-size: 10px;">篮网</a> <a href="/tags/%E7%BA%B8%E5%BC%A0/" style="font-size: 10px;">纸张</a> <a href="/tags/%E7%BB%84%E4%BB%B6/" style="font-size: 10px;">组件</a> <a href="/tags/%E7%BD%91%E7%AB%99/" style="font-size: 10px;">网站</a> <a href="/tags/%E7%BD%91%E7%BB%9C%E7%88%AC%E8%99%AB/" style="font-size: 11.25px;">网络爬虫</a> <a href="/tags/%E7%BE%8E%E5%AD%A6/" style="font-size: 10px;">美学</a> <a href="/tags/%E8%82%89%E5%A4%B9%E9%A6%8D/" style="font-size: 10px;">肉夹馍</a> <a href="/tags/%E8%85%BE%E8%AE%AF%E4%BA%91/" style="font-size: 10px;">腾讯云</a> <a href="/tags/%E8%87%AA%E5%BE%8B/" style="font-size: 10px;">自律</a> <a href="/tags/%E8%A5%BF%E5%B0%91%E7%88%B7/" style="font-size: 10px;">西少爷</a> <a href="/tags/%E8%A7%86%E9%A2%91/" style="font-size: 10px;">视频</a> <a href="/tags/%E8%B0%B7%E6%AD%8C%E9%AA%8C%E8%AF%81%E7%A0%81/" style="font-size: 10px;">谷歌验证码</a> <a href="/tags/%E8%BF%90%E8%90%A5/" style="font-size: 10px;">运营</a> <a href="/tags/%E8%BF%9C%E7%A8%8B/" style="font-size: 10px;">远程</a> <a href="/tags/%E9%80%86%E5%90%91/" style="font-size: 10px;">逆向</a> <a href="/tags/%E9%85%8D%E7%BD%AE/" style="font-size: 10px;">配置</a> <a href="/tags/%E9%87%8D%E8%A3%85/" style="font-size: 10px;">重装</a> <a href="/tags/%E9%98%BF%E6%9D%9C/" style="font-size: 10px;">阿杜</a> <a href="/tags/%E9%9D%99%E8%A7%85/" style="font-size: 17.5px;">静觅</a> <a href="/tags/%E9%A2%A0%E8%A6%86/" style="font-size: 10px;">颠覆</a> <a href="/tags/%E9%A3%9E%E4%BF%A1/" style="font-size: 10px;">飞信</a> <a href="/tags/%E9%B8%BF%E8%92%99/" style="font-size: 10px;">鸿蒙</a>
              </div>
              <script>
                const tagsColors = ['#00a67c', '#5cb85c', '#d9534f', '#567e95', '#b37333', '#f4843d', '#15a287']
                const tagsElements = document.querySelectorAll('.sidebar-panel-tags .content a')
                tagsElements.forEach((item) =>
                {
                  item.style.backgroundColor = tagsColors[Math.floor(Math.random() * tagsColors.length)]
                })

              </script>
            </div>
            <div class="sidebar-panel sidebar-panel-categories sidebar-panel-active">
              <h4 class="name"> 分类 </h4>
              <div class="content">
                <ul class="category-list">
                  <li class="category-list-item"><a class="category-list-link" href="/categories/C-C/">C/C++</a><span class="category-list-count">23</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/HTML/">HTML</a><span class="category-list-count">14</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/Java/">Java</a><span class="category-list-count">5</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/JavaScript/">JavaScript</a><span class="category-list-count">26</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/Linux/">Linux</a><span class="category-list-count">15</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/Markdown/">Markdown</a><span class="category-list-count">1</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/Net/">Net</a><span class="category-list-count">4</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/Other/">Other</a><span class="category-list-count">39</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/PHP/">PHP</a><span class="category-list-count">27</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/Paper/">Paper</a><span class="category-list-count">2</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/Python/">Python</a><span class="category-list-count">261</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/TypeScript/">TypeScript</a><span class="category-list-count">2</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/%E4%B8%AA%E4%BA%BA%E5%B1%95%E7%A4%BA/">个人展示</a><span class="category-list-count">1</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/%E4%B8%AA%E4%BA%BA%E6%97%A5%E8%AE%B0/">个人日记</a><span class="category-list-count">9</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/%E4%B8%AA%E4%BA%BA%E8%AE%B0%E5%BD%95/">个人记录</a><span class="category-list-count">4</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/%E4%B8%AA%E4%BA%BA%E9%9A%8F%E7%AC%94/">个人随笔</a><span class="category-list-count">15</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/%E5%AE%89%E8%A3%85%E9%85%8D%E7%BD%AE/">安装配置</a><span class="category-list-count">59</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/%E6%8A%80%E6%9C%AF%E6%9D%82%E8%B0%88/">技术杂谈</a><span class="category-list-count">88</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/%E6%9C%AA%E5%88%86%E7%B1%BB/">未分类</a><span class="category-list-count">1</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/%E7%94%9F%E6%B4%BB%E7%AC%94%E8%AE%B0/">生活笔记</a><span class="category-list-count">1</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/%E7%A6%8F%E5%88%A9%E4%B8%93%E5%8C%BA/">福利专区</a><span class="category-list-count">6</span></li>
                  <li class="category-list-item"><a class="category-list-link" href="/categories/%E8%81%8C%E4%BD%8D%E6%8E%A8%E8%8D%90/">职位推荐</a><span class="category-list-count">2</span></li>
                </ul>
              </div>
            </div>
            <div class="sidebar-panel sidebar-panel-friends sidebar-panel-active">
              <h4 class="name"> 友情链接 </h4>
              <ul class="friends">
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/j2dub.jpg">
                  </span>
                  <span class="link">
                    <a href="https://www.findhao.net/" target="_blank" rel="noopener">FindHao</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/ou6mm.jpg">
                  </span>
                  <span class="link">
                    <a href="https://diygod.me/" target="_blank" rel="noopener">DIYgod</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/6apxu.jpg">
                  </span>
                  <span class="link">
                    <a href="https://www.51dev.com/" target="_blank" rel="noopener">IT技术社区</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://www.jankl.com/img/titleshu.jpg">
                  </span>
                  <span class="link">
                    <a href="https://www.jankl.com/" target="_blank" rel="noopener">liberalist</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/bqlbs.png">
                  </span>
                  <span class="link">
                    <a href="http://www.urselect.com/" target="_blank" rel="noopener">优社电商</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/8s88c.jpg">
                  </span>
                  <span class="link">
                    <a href="https://www.yuanrenxue.com/" target="_blank" rel="noopener">猿人学</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/2wgg5.jpg">
                  </span>
                  <span class="link">
                    <a href="https://www.yunlifang.cn/" target="_blank" rel="noopener">云立方</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/shwr6.png">
                  </span>
                  <span class="link">
                    <a href="http://lanbing510.info/" target="_blank" rel="noopener">冰蓝</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/blvoh.jpg">
                  </span>
                  <span class="link">
                    <a href="https://lengyue.me/" target="_blank" rel="noopener">冷月</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="http://qianxunclub.com/favicon.png">
                  </span>
                  <span class="link">
                    <a href="http://qianxunclub.com/" target="_blank" rel="noopener">千寻啊千寻</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/0044u.jpg">
                  </span>
                  <span class="link">
                    <a href="http://kodcloud.com/" target="_blank" rel="noopener">可道云</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/ygnpn.jpg">
                  </span>
                  <span class="link">
                    <a href="http://www.kunkundashen.cn/" target="_blank" rel="noopener">坤坤大神</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/22uv1.png">
                  </span>
                  <span class="link">
                    <a href="http://www.cenchong.com/" target="_blank" rel="noopener">岑冲博客</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/ev9kl.png">
                  </span>
                  <span class="link">
                    <a href="http://www.zxiaoji.com/" target="_blank" rel="noopener">张小鸡</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://www.503error.com/favicon.ico">
                  </span>
                  <span class="link">
                    <a href="https://www.503error.com/" target="_blank" rel="noopener">张志明个人博客</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/x714o.jpg">
                  </span>
                  <span class="link">
                    <a href="http://www.hubwiz.com/" target="_blank" rel="noopener">汇智网</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/129d8.png">
                  </span>
                  <span class="link">
                    <a href="https://www.bysocket.com/" target="_blank" rel="noopener">泥瓦匠BYSocket</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://www.xiongge.club/favicon.ico">
                  </span>
                  <span class="link">
                    <a href="https://www.xiongge.club/" target="_blank" rel="noopener">熊哥club</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/3w4fe.png">
                  </span>
                  <span class="link">
                    <a href="https://zerlong.com/" target="_blank" rel="noopener">知语</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/44hxf.png">
                  </span>
                  <span class="link">
                    <a href="http://redstonewill.com/" target="_blank" rel="noopener">红色石头</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/8g1fk.jpg">
                  </span>
                  <span class="link">
                    <a href="http://www.laodong.me/" target="_blank" rel="noopener">老董博客</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/wkaus.jpg">
                  </span>
                  <span class="link">
                    <a href="https://zhaoshuai.me/" target="_blank" rel="noopener">碎念</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/pgo0r.jpg">
                  </span>
                  <span class="link">
                    <a href="https://www.chenwenguan.com/" target="_blank" rel="noopener">陈文管的博客</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/kk82a.jpg">
                  </span>
                  <span class="link">
                    <a href="https://www.lxlinux.net/" target="_blank" rel="noopener">良许Linux教程网</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/lj0t2.jpg">
                  </span>
                  <span class="link">
                    <a href="https://tanqingbo.cn/" target="_blank" rel="noopener">IT码农</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/i8cdr.png">
                  </span>
                  <span class="link">
                    <a href="https://junyiseo.com/" target="_blank" rel="noopener">均益个人博客</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/chwv2.png">
                  </span>
                  <span class="link">
                    <a href="https://brucedone.com/" target="_blank" rel="noopener">大鱼的鱼塘</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/2y43o.png">
                  </span>
                  <span class="link">
                    <a href="http://bbs.nightteam.cn/" target="_blank" rel="noopener">夜幕爬虫安全论坛</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/zvc3w.jpg">
                  </span>
                  <span class="link">
                    <a href="https://www.weishidong.com/" target="_blank" rel="noopener">韦世东的技术专栏</a>
                  </span>
                </li>
                <li class="friend">
                  <span class="logo">
                    <img src="https://qiniu.cuiqingcai.com/ebudy.jpg">
                  </span>
                  <span class="link">
                    <a href="https://chuanjiabing.com/" target="_blank" rel="noopener">穿甲兵技术社区</a>
                  </span>
                </li>
              </ul>
            </div>
          </div>
        </aside>
        <div id="sidebar-dimmer"></div>
      </div>
    </main>
    <footer class="footer">
      <div class="footer-inner">
        <div class="copyright"> &copy; <span itemprop="copyrightYear">2021</span>
          <span class="with-love">
            <i class="fa fa-heart"></i>
          </span>
          <span class="author" itemprop="copyrightHolder">崔庆才丨静觅</span>
          <span class="post-meta-divider">|</span>
          <span class="post-meta-item-icon">
            <i class="fa fa-chart-area"></i>
          </span>
          <span title="站点总字数">2.6m</span>
          <span class="post-meta-divider">|</span>
          <span class="post-meta-item-icon">
            <i class="fa fa-coffee"></i>
          </span>
          <span title="站点阅读时长">39:54</span>
        </div>
        <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://pisces.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Pisces</a> 强力驱动 </div>
        <div class="beian"><a href="https://beian.miit.gov.cn/" rel="noopener" target="_blank">京ICP备18015597号-1 </a>
        </div>
        <script>
          (function ()
          {
            function leancloudSelector(url)
            {
              url = encodeURI(url);
              return document.getElementById(url).querySelector('.leancloud-visitors-count');
            }

            function addCount(Counter)
            {
              var visitors = document.querySelector('.leancloud_visitors');
              var url = decodeURI(visitors.id);
              var title = visitors.dataset.flagTitle;
              Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify(
              {
                url
              }))).then(response => response.json()).then((
              {
                results
              }) =>
              {
                if (results.length > 0)
                {
                  var counter = results[0];
                  leancloudSelector(url).innerText = counter.time + 1;
                  Counter('put', '/classes/Counter/' + counter.objectId,
                  {
                    time:
                    {
                      '__op': 'Increment',
                      'amount': 1
                    }
                  }).catch(error =>
                  {
                    console.error('Failed to save visitor count', error);
                  });
                }
                else
                {
                  Counter('post', '/classes/Counter',
                  {
                    title,
                    url,
                    time: 1
                  }).then(response => response.json()).then(() =>
                  {
                    leancloudSelector(url).innerText = 1;
                  }).catch(error =>
                  {
                    console.error('Failed to create', error);
                  });
                }
              }).catch(error =>
              {
                console.error('LeanCloud Counter Error', error);
              });
            }

            function showTime(Counter)
            {
              var visitors = document.querySelectorAll('.leancloud_visitors');
              var entries = [...visitors].map(element =>
              {
                return decodeURI(element.id);
              });
              Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify(
              {
                url:
                {
                  '$in': entries
                }
              }))).then(response => response.json()).then((
              {
                results
              }) =>
              {
                for (let url of entries)
                {
                  let target = results.find(item => item.url === url);
                  leancloudSelector(url).innerText = target ? target.time : 0;
                }
              }).catch(error =>
              {
                console.error('LeanCloud Counter Error', error);
              });
            }
            let
            {
              app_id,
              app_key,
              server_url
            } = {
              "enable": true,
              "app_id": "6X5dRQ0pnPWJgYy8SXOg0uID-gzGzoHsz",
              "app_key": "ziLDVEy73ne5HtFTiGstzHMS",
              "server_url": "https://6x5drq0p.lc-cn-n1-shared.com",
              "security": false
            };

            function fetchData(api_server)
            {
              var Counter = (method, url, data) =>
              {
                return fetch(`${api_server}/1.1${url}`,
                {
                  method,
                  headers:
                  {
                    'X-LC-Id': app_id,
                    'X-LC-Key': app_key,
                    'Content-Type': 'application/json',
                  },
                  body: JSON.stringify(data)
                });
              };
              if (CONFIG.page.isPost)
              {
                if (CONFIG.hostname !== location.hostname) return;
                addCount(Counter);
              }
              else if (document.querySelectorAll('.post-title-link').length >= 1)
              {
                showTime(Counter);
              }
            }
            let api_server = app_id.slice(-9) !== '-MdYXbMMI' ? server_url : `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`;
            if (api_server)
            {
              fetchData(api_server);
            }
            else
            {
              fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id).then(response => response.json()).then((
              {
                api_server
              }) =>
              {
                fetchData('https://' + api_server);
              });
            }
          })();

        </script>
      </div>
      <div class="footer-stat">
        <span id="cnzz_stat_icon_1279355174"></span>
        <script type="text/javascript">
          document.write(unescape("%3Cspan id='cnzz_stat_icon_1279355174'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z_stat.php%3Fid%3D1279355174%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));

        </script>
      </div>
    </footer>
  </div>
  <script src="//cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/pangu@4/dist/browser/pangu.min.js"></script>
  <script src="/js/utils.js"></script>
  <script src="/.js"></script>
  <script src="/js/schemes/pisces.js"></script>
  <script src="/.js"></script>
  <script src="/js/next-boot.js"></script>
  <script src="/.js"></script>
  <script>
    (function ()
    {
      var canonicalURL, curProtocol;
      //Get the <link> tag
      var x = document.getElementsByTagName("link");
      //Find the last canonical URL
      if (x.length > 0)
      {
        for (i = 0; i < x.length; i++)
        {
          if (x[i].rel.toLowerCase() == 'canonical' && x[i].href)
          {
            canonicalURL = x[i].href;
          }
        }
      }
      //Get protocol
      if (!canonicalURL)
      {
        curProtocol = window.location.protocol.split(':')[0];
      }
      else
      {
        curProtocol = canonicalURL.split(':')[0];
      }
      //Get current URL if the canonical URL does not exist
      if (!canonicalURL) canonicalURL = window.location.href;
      //Assign script content. Replace current URL with the canonical URL
      ! function ()
      {
        var e = /([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,
          r = canonicalURL,
          t = document.referrer;
        if (!e.test(r))
        {
          var n = (String(curProtocol).toLowerCase() === 'https') ? "https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif" : "//api.share.baidu.com/s.gif";
          t ? (n += "?r=" + encodeURIComponent(document.referrer), r && (n += "&l=" + r)) : r && (n += "?l=" + r);
          var i = new Image;
          i.src = n
        }
      }(window);
    })();

  </script>
  <script src="/js/local-search.js"></script>
  <script src="/.js"></script>
</body>

</html>
